[symfony-users] How to style embedded forms

2010-07-22 Thread Samuel Morhaim
Can someone point me on how to style embedded forms? I am able to embed a form, but now it looks completely as part of my main form. In reality I want them to look like 2 sections, with one submit, but i want to style the bottom part a bit differently.. being on a separate box than the main

[symfony-users] csrf token required

2010-07-11 Thread Samuel Morhaim
Hi, I am getting a Csrf Token required error, but not sure why. This is a very simple form, made the same way I've made many other forms but never got this error before. What should I be checking for? Thanks. -- If you want to report a vulnerability issue on symfony, please send it to security

[symfony-users] Mandatory fields created_at

2010-07-09 Thread Samuel Morhaim
Hi, I created a simple new Table in my schema, and selected it as timestampable, then generated the CRUD.. but for some reason is setting the created at and updated at fields as mandatory, and not really just using default values... what am i doing wrong and why do i need to enter this fields?

Re: [symfony-users] Preventing users from seeing others information

2010-05-25 Thread Samuel Morhaim
-- nothing stops another user from typing random numbers to see if they exist Is there a generic way to avoid this? I guess using GET? but i am not sure. On Mon, May 24, 2010 at 10:59 PM, Eno symb...@gmail.com wrote: On Mon, 24 May 2010, Samuel Morhaim wrote: mysite.com/account/profile/5

[symfony-users] Preventing users from seeing others information

2010-05-24 Thread Samuel Morhaim
If I have something such as mysite.com/account/profile/5 What prevents me from switching the /5 for a /4 /3 .. etc.. to call the profile for other Id's? How do you prevent this from happening? thanks. -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Headers already sent

2010-05-17 Thread Samuel Morhaim
I am trying to move my site from one host to another... same code on both.. however on the new server, one of my modules is throwing this *Warning*: Cannot modify header information - headers already sent by (output started at /var/www/

[symfony-users] Doctrine Migration

2010-05-11 Thread Samuel Morhaim
Hi, When attempting to do a migration I get the error below. Reading about, it mentions that I am probably missing an index for the key, but I already added it. I also made sure that both the local and foreign key are the same type, cleared cache, etc. Please help as I need to do this

[symfony-users] hl7

2010-04-13 Thread Samuel Morhaim
Is anyone in the group familiar with Hl7 formats? I am looking to hire a developer for a small project. Thank you. (sorry is this out of topic..) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you

[symfony-users] Doctrine dump and then import failing

2010-04-08 Thread Samuel Morhaim
Hi, I have a big schema, and I needed to add a new Table, so I did, while I am testing, I dumped my DB to a fixture and it works well, but when I try to load it back, it gives me this error: Couldn't call Doctrine_Core::set(), second argument should be an instance of Doctrine_Collection when

Re: [symfony-users] Doctrine dump and then import failing

2010-04-08 Thread Samuel Morhaim
Thank you Michal, But at this stage, I am just developing, the data is erasable, so I am not doing migrations yet. The process of create-dump-reload process should work.. no? 2010/4/8 Michał Piotrowski mkkp...@gmail.com Hi, 2010/4/9 Samuel Morhaim samuel.morh...@gmail.com: Hi, I

Re: [symfony-users] Doctrine dump and then import failing

2010-04-08 Thread Samuel Morhaim
: Keyword_1: Organization: Organization_2 keyword: KW1 Works but it is not the right way to do it. : Keyword: Keyword_1: organization_id: 2 keyword: KW1 2010/4/8 Michał Piotrowski mkkp...@gmail.com 2010/4/9 Samuel Morhaim samuel.morh...@gmail.com: Thank you Michal

Re: [symfony-users] Doctrine dump and then import failing

2010-04-08 Thread Samuel Morhaim
of ? 2010/4/8 Michał Piotrowski mkkp...@gmail.com 2010/4/9 Samuel Morhaim samuel.morh...@gmail.com: Yes, exactly, however, either by dumping it, or by writing it myself, its still not allowing me to load that fixture... the only problem area is the Keyword table, but it doesn't make sense

Re: [symfony-users] Doctrine dump and then import failing

2010-04-08 Thread Samuel Morhaim
setting one-to-many references. when doing data load. 2010/4/8 Michał Piotrowski mkkp...@gmail.com 2010/4/9 Samuel Morhaim samuel.morh...@gmail.com: Michael, first of all, thank you for all the replies. I already tried that.. it still fails. I moved keywords to be the last

[symfony-users] How to do upgrades

2010-04-05 Thread Samuel Morhaim
I have a question.. once I finish coding and the site goes into production, I can't rebuild the DB every time I need to add a field etc. How do people workaround this? What is the process for migrations? Thank you. -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Is there a blog plugin for 1.4?

2010-03-27 Thread Samuel Morhaim
Is there? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To

Re: [symfony-users] sfWidgetFormDoctrineChoice problems

2010-03-06 Thread Samuel Morhaim
( 'model' = 'Campaign', 'query' = $query )); Hope it help you. Samuel Morhaim wrote: I have a question, I have a dropdown that needs to be populated from the database, but with a query, and the query is based on a post variable. I know

[symfony-users] sfWidgetFormDoctrineChoice problems

2010-03-05 Thread Samuel Morhaim
I have a question, I have a dropdown that needs to be populated from the database, but with a query, and the query is based on a post variable. I know that sfWidgetFormDoctrineChoice has an option for passing a method, but I can't pass a method + parameter like that. So I used the simple

[symfony-users] Re: sfWidgetFormDoctrineChoice problems

2010-03-05 Thread Samuel Morhaim
? This gives me tons of errors of course... On Fri, Mar 5, 2010 at 7:10 PM, Samuel Morhaim samuel.morh...@gmail.comwrote: I have a question, I have a dropdown that needs to be populated from the database, but with a query, and the query is based on a post variable. I know

[symfony-users] Many to many doctrine in forms / embeded forms.

2010-03-04 Thread Samuel Morhaim
I am having some issues finding a good example on how to display the many to many fields in a form, actually on an embeded form. Can somebody point me in the right direction? Thank you. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] Semi public anouncement..

2010-03-02 Thread Samuel Morhaim
Hello: If anyone is interested in making some extra bucks, I need help creating a form (with a few embedded forms) for an app. This should take you a few hours if you are experienced. Let me know. Thank you. -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Re: Why is this fixture not working?

2010-03-01 Thread Samuel Morhaim
Anyone? Thank you On 3/1/10, Samuel Morhaim samuel.morh...@gmail.com wrote: Never mind about this one, but now I am facing one more issue.. Based on the below schema.. why is the 1 to many between Command and Events not working? I get a method such as $command-getEvent() but it seems

Re: [symfony-users] Re: Why is this fixture not working?

2010-03-01 Thread Samuel Morhaim
(255) } company: { type: string(255), notnull: true } ... relations: JobeetCategory: { onDelete: CASCADE, local: category_id, foreign: id, foreignAlias: JobeetJobs } On 1 bře, 06:15, Samuel Morhaim samuel.morh...@gmail.com wrote: Never mind about this one, but now I am facing one

[symfony-users] Calling an action from an outside class

2010-03-01 Thread Samuel Morhaim
Is there a way to call an action, from an outside Class? I am handling the processing of one of my routines with an outside class.. I need to call the exact same code being called in one of my actions.. how can i do this? or should i move the code somewhere else? thanks. -- If you want to

Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Samuel Morhaim
Lohse annismcken...@googlemail.comwrote: Move it out to the model or into the outside class and also call it from the action. :) Daniel On 01.03.2010, at 23:43, Samuel Morhaim wrote: Is there a way to call an action, from an outside Class? I am handling the processing of one of my

Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Samuel Morhaim
On 02.03.2010, at 01:00, Samuel Morhaim wrote: Sorry for the dumb question, but now that I moved it to lib/Message.class.php ... how do I call it from there from within a separate Class? I manage to call it from within the actions.. but now i am in this external class, and i need to call

[symfony-users] Why is this fixture not working?

2010-02-28 Thread Samuel Morhaim
It is a somewhat complex table relation but it should work.. A rule, can have a command, the command can have many events. I get this error: Unknown record property / related component ev1 on Event Fixture: Rule: rule_1: id: 1 type: User campaign_id: 1 msg_to: 32075

[symfony-users] Re: Why is this fixture not working?

2010-02-28 Thread Samuel Morhaim
: [delete] Template: local: template_id foreign: id On Sun, Feb 28, 2010 at 2:42 PM, Samuel Morhaim samuel.morh...@gmail.comwrote: It is a somewhat complex table relation but it should work.. A rule, can have a command, the command can have many events. I get this error

Re: [symfony-users] Re: Array over a Form

2010-02-23 Thread Samuel Morhaim
/serialize Ah yes I misunderstood the question - in my example it is possible but a bit silly because you'd need a bunch of hidden fields. If you are storing simple arrays, I'd recommend json - but potato potato ;o) On Mon, Feb 22, 2010 at 10:42 PM, Samuel Morhaim samuel.morh...@gmail.com

[symfony-users] Array over a Form

2010-02-22 Thread Samuel Morhaim
This is maybe a regular html forms question, not neccesarily Symfony.. but.. how do I send an Array over a Form? is it possible? I have a hidden field, and I would want to send an Array in it.. is this possible? Thanks. -- You received this message because you are subscribed to the Google

[symfony-users] Hidden Field not rendering

2010-02-20 Thread Samuel Morhaim
I have the below code.. then WHY is the field campaign_id not getting populated with the default? Only works when I unhide it... Thank you. class AddressBookForm extends BaseAddressBookForm { public function configure() { unset( $this['created_at'],

[symfony-users] Simple question...

2010-02-19 Thread Samuel Morhaim
If I have a field isActive and of course it returns 1 or 0 .. how can I change the class to return Active / Inacrive as a string, and not doing it on the view for each time i use it? Thank you. -- You received this message because you are subscribed to the Google Groups symfony users group.

[symfony-users] How to insert data from other actions.

2010-02-19 Thread Samuel Morhaim
Assuming the below schema.. I am doing the following: Within Campaign , I am showing a record, and within, I am showing a form for addressbook. So how can I get the name of the Campaign I am in, so that I can set it automatically into the form for AddressBook ? Something like.. ... hide the

[symfony-users] Re: Id being lost on update..

2010-02-18 Thread Samuel Morhaim
Anyone? On 2/17/10, Samuel Morhaim samuel.morh...@gmail.com wrote: If it helps.. this is the error, of course because it lost the id.. SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 1 stack trace * at () in SF_SYMFONY_LIB_DIR/plugins

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Samuel Morhaim
someone will help you if you explain what do you want to do. Actually we don't have enough information on such things as: - what do you want to do - what you are doing - iow - show us the code - maybe others are, but I'm not a seer :) Regards, Michal 2010/2/18 Samuel Morhaim samuel.morh

Re: [symfony-users] Re: White screen only in production enviroment

2010-02-18 Thread Samuel Morhaim
In my case, I was working on a new installed php server, and I had to modify /etc/php.ini to enable errors, etc etc. Not recommended for production envs. so be sure to turn them off before going live. On Thu, Feb 18, 2010 at 9:39 AM, PachinSV pachi...@gmail.com wrote: when I upload a symfony

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Samuel Morhaim
fine. Can we see your form's configure() method? On Thu, Feb 18, 2010 at 16:08, Samuel Morhaim samuel.morh...@gmail.com wrote: Here goes the extra info. :) 1. I am just doing a simple edit.  (based almost on the generated CRUD actions) 2. Yes, it is unique, (schema below). 3. I am

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Samuel Morhaim
:57, Samuel Morhaim wrote: ?php /** * Campaign Entry Form. */ class CampaignForm extends BaseCampaignForm {  public function configure()  {    unset(      $this['organization_id'],      $this['is_active']      );  } } On Thu, Feb 18, 2010 at 10:42 AM

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Samuel Morhaim
Piotrowski mkkp...@gmail.com: 2010/2/18 Samuel Morhaim samuel.morh...@gmail.com: unseting id worked..  However.. why is this necessary? The generated Crud, did not do this initially, why is it necessary now? because i unsetted one element, then i always need to unset id and such ? Just

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Samuel Morhaim
, Syam s...@nexen.org wrote: If you forgot echo $form-renderHiddenFields();, then unset($this[id]) make sense since the validator don't try to taint the missing value. Can you paste your template code please ? Samuel Morhaim wrote: unseting id worked.. However.. why is this necessary

[symfony-users] How to get $sf_user from the model

2010-02-18 Thread Samuel Morhaim
I use the following line in many places, and I want to make it shorter.. since I will never be pulling the information for ALL organizations.. $this-campaigns = Doctrine::getTable('Campaign')-getCampaigns($this-getUser()-getGuardUser()-Organization); I created the method getCampaigns class

[symfony-users] Id being lost on update..

2010-02-17 Thread Samuel Morhaim
I am getting an error when doing a simple edit/update ... the ID of the item is being lost. This is the DB log... maybe somebody can help ? # SELECT c.id AS c__id, c.organization_id AS c__organization_id, c.name AS c__name, c.description AS c__description, c.is_active AS c__is_active FROM

[symfony-users] Re: Id being lost on update..

2010-02-17 Thread Samuel Morhaim
... 1079. $message .= sprintf('. Failing Query: %s', $query); On Wed, Feb 17, 2010 at 5:20 PM, Samuel Morhaim samuel.morh...@gmail.com wrote: I am getting an error when doing a simple edit/update ... the ID of the item is being lost. This is the DB log... maybe somebody can help

[symfony-users] Redirect to partial

2010-02-11 Thread Samuel Morhaim
Hi.. working on my Ajax.. i have a question.. How can I do redirect to a partial? Option 1: I turn off layout for each specific action that uses ajax but then i endup with a method with ajax and without ajax... Option 2: I manage to redirect to a partial so if if($request-isXmlHttpRequest()) is

Re: [symfony-users] Redirect to partial

2010-02-11 Thread Samuel Morhaim
, Pensez à Votre Responsabilitée Environnementale! On Thu, Feb 11, 2010 at 10:45 PM, Samuel Morhaim samuel.morh...@gmail.com wrote: Hi.. working on my Ajax.. i have a question.. How can I do redirect to a partial? Option 1: I turn off layout for each specific action that uses ajax but then i

Re: [symfony-users] Redirect to partial

2010-02-11 Thread Samuel Morhaim
Thank you for all this help. ok setLayout(false) was working, it was just not in the right place.. Ok so last question, I promise.. : I am back at my original dilema : Do I need 2 actions for the same? One action for the general index page... and one for just the table for when a call is made

Re: [symfony-users] Re: Help with Schema

2010-02-09 Thread Samuel Morhaim
I think the many to many on CampaignAddressBook is not working properly. I don't get any errors, but the generated CRUD shows me an input text for Campaign, instead of a dropdown which i was expecting, based on the Campaign Records.. On Tue, Feb 9, 2010 at 3:23 AM, Raphael Schumacher

[symfony-users] Admin generator without CSS

2010-02-09 Thread Samuel Morhaim
Hi, I am just testing a bit the admin generator on sf 1.4 and it shows completly without any CSS.. so I looked at the source code and it is pointing to CSS on the sfDoctrinePlugin , of course it can't find it... Any ideas how to fix it? I thought doctrine was included ? -- You received this

[symfony-users] Ajax Forms

2010-02-09 Thread Samuel Morhaim
Can somebody show me or point me in the right direction for doing: 1. Same-screen form edits. (For example adding an entry to a table with a form on the same screen without re-navigating) 2. Deleting items from a table without re-navigating I know there are examples for sf 1.2 but it was

[symfony-users] Re: Ajax Forms

2010-02-09 Thread Samuel Morhaim
Anyone? On Tue, Feb 9, 2010 at 3:12 PM, Samuel Morhaim samuel.morh...@gmail.comwrote: Can somebody show me or point me in the right direction for doing: 1. Same-screen form edits. (For example adding an entry to a table with a form on the same screen without re-navigating) 2. Deleting items

Re: [symfony-users] Re: Ajax Forms

2010-02-09 Thread Samuel Morhaim
you should refresh table. for deleting items from a table I think you should traverse table records and get a specific record across columns in a row and then submit the delete action with ID as parameter, as batch actions. 2010/2/9 Samuel Morhaim samuel.morh...@gmail.com Anyone? On Tue, Feb

[symfony-users] Error on extending profile for sfguard

2010-02-08 Thread Samuel Morhaim
What am I doing wrong? I keep getting errors rebuilding and also importing fixtures.. Schema # config/doctrine/schema.yml Organization: actAs: { Timestampable: ~ } columns: sf_guard_user_id: { type: integer(5) } name: { type: string(255), notnull: true, unique: true } first_name:

Re: [symfony-users] Re: Error on extending profile for sfguard

2010-02-08 Thread Samuel Morhaim
, Filipe filipepimentasi...@gmail.com wrote: same problem here On Feb 8, 7:16 pm, Samuel Morhaim samuel.morh...@gmail.com wrote: What am I doing wrong? I keep getting errors rebuilding and also importing fixtures.. Schema # config/doctrine/schema.yml Organization: actAs

Re: [symfony-users] Re: Error on extending profile for sfguard

2010-02-08 Thread Samuel Morhaim
I removed the primary: true and it worked.. i hope this helps. On Mon, Feb 8, 2010 at 4:46 PM, Samuel Morhaim samuel.morh...@gmail.comwrote: I found this http://jonocode.wordpress.com/2009/07/11/adding-sf_guard_user_profile-to-the-sfdoctrineguardplugin/ but still get the issue, can't fix

[symfony-users] Proper way to access object..

2010-02-08 Thread Samuel Morhaim
I am trying to access the object of the extended profile for sfguard.. http://pastebin.com/md823309 How is the correct way of doing that? # config/doctrine/schema.yml Organization: actAs: { Timestampable: ~ } columns: sf_guard_user_id: { type: integer(4) } name: { type: string(255),

[symfony-users] Help with Schema

2010-02-08 Thread Samuel Morhaim
I am trying to create the following schema with the following requirements. * One to one Organization to sfGuardUser * Each organization, may have multiple campaigns. * Each campaign may have multiple addressbooks. * MessageQueue holds general information for all