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
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
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
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