[symfony-users] Re: problem with $form->getObject()

2010-07-27 Thread Tom Ptacnik
Then you can try to set your form like in this http://melikedev.com/2009/12/09/symfony-w-doctrine-saving-many-to-many-mm-relationships/ article and see how Symfony does this. On 26 čnc, 22:51, Devang Modi wrote: > Thanks for info. > I tried something similar but it didn't work. > > In doUpdateObj

[symfony-users] Re: problem with $form->getObject()

2010-07-26 Thread Devang Modi
Thanks for info. I tried something similar but it didn't work. In doUpdateObject $authors = Doctrine::getTable('Dauthor')->createQuery('a')- >where('id=?', '1')->execute(); $this->object->setDauthor($authors); What am I doing wrong? Thanks, Devang. On Jul 26, 5:59 am, Johannes wrote: > I'd upd

[symfony-users] Re: problem with $form->getObject()

2010-07-26 Thread Johannes
I'd update the object directly instead of the values: $this->object->setPublication('test'); $this->object->Authors->get(null); kind regards, Johannes On 26 Jul., 02:18, Devang Modi wrote: > I found doUpdateObject to update publication and it worked. But same > thing I tried with many to many re

[symfony-users] Re: problem with $form->getObject()

2010-07-25 Thread Devang Modi
I found doUpdateObject to update publication and it worked. But same thing I tried with many to many relationship it didn't work. I change my YML; Dauthor: tableName: dauthor columns: id: { type: integer(4), unsigned: true, primary: true, autoincrement: true } name: { type: string