[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread maestro
Oppps, this is embarrassing. I was missing the autoIncrement: true, in my message schema.yml. Nathan thanx for your time.. On Mar 16, 10:53 pm, maestro wrote: > but it is! it is right there in the db.. isn't this interesting! > > On Mar 16, 10:29 pm, Nathan Rzepecki > wrote:

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread maestro
but it is! it is right there in the db.. isn't this interesting! On Mar 16, 10:29 pm, Nathan Rzepecki wrote: > That means it is not yet saved. > > - > Nathan Rzepeckihttp://www.lionslair.net.au > > maestro wrote: > > sadly $this->getObject()

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread maestro
t; within > >  public function saveEmbeddedForms($con = null, $forms = null) > > Because by the time that is called the main object is then saved. > > - > Nathan Rzepeckihttp://www.lionslair.net.au > > maestro wrote: > > Still stuck! >

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread maestro
Still stuck! Looking a the sfPropelForm save() it is clear that the call to saveEmbeddedForms comes after the main object is getting saved. I see it also happening in the log file. Could it be something to do with the begin and transaction calls that surrounding doSave and saveEmbeddedForms? I me

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-16 Thread maestro
, foreignReference: id } On Mar 16, 4:48 pm, lionslair wrote: > Can you show me your database schema.  If it works on one I don't know > why it doesn't work on the other. > > On Mar 16, 3:52 pm, maestro wrote: > > > Am stumped by the same problem. I have a form that

[symfony-users] Re: saving multiple objects in a form save

2009-03-16 Thread maestro
mechanism in > order to let it do that save for you as well as return the ID. > > On Sun, Mar 15, 2009 at 7:42 PM, maestro wrote: > > > Hello gentlemen, > > > I have a propel form class in which i override the save() function. Am > > trying to save the main form objec

[symfony-users] Re: Save an embedded form that relies on the other form

2009-03-15 Thread maestro
Am stumped by the same problem. I have a form that corresponds to the main db object, and in it i have a bunch of embedded forms with related objects. I need the ID generated for the main object to pass to the related objects. The main object is being saved fine (I see it in the DB), but when i t

[symfony-users] saving multiple objects in a form save

2009-03-15 Thread maestro
Hello gentlemen, I have a propel form class in which i override the save() function. Am trying to save the main form object and some related objects. But when i try to use the id of the just-added main object i find it empty. It says in the docs. that once a propel object is saved the id should g

[symfony-users] Re: Generate fixture from database contents

2009-03-15 Thread maestro
I usually use symfony propel:data-dump > fixture.yml. Then edit the file if i have to. On Mar 14, 2:59 am, Java Guy wrote: > Is there a task or method anyone knows of to generate a fixture from a > plugin? > > I've got some initial data I've put into my database using a fixture? > But some of it

[symfony-users] Re: sfWidgetFormSelectDoubleList and ajax

2009-03-10 Thread maestro
x27;update'). (!$form->getObject()->isNew() ? '? id='.$form->getObject()->getId() : ''), 'method' => 'post')) ?> And everything seems to work for now. cheers, On Mar 9, 5:17 pm, maestro wrot

[symfony-users] sfWidgetFormSelectDoubleList and ajax

2009-03-09 Thread maestro
Greetings all, I'd appreciate some help on the following. I have a problem using sfWidgetFormSelectDoubleList from the sfFormExtraPlugin plugin on a form that uses jq_submit_to_remote. sfWidgetFormSelectDoubleList uses a javascript, that hooks on the submit event, that select the items in the "as