Hello, Found out it by myself (well, I got it working)
I did not use the relation "Parent" by its name, but by the class name (->getEnseignement). I added a "Child" relation to be able to navigate on "each" side, adapted the getters in the code and voila... Mikael On 17 mai, 13:55, Mikael <mikael.kermorg...@gmail.com> wrote: > Hello, > > I have a strange behavior when I save a Doctrine form based on this > model : > > Enseignement: > columns: > code: { type: varchar } > nom: { type: varchar } > valide: { type: boolean, default: false, notnull: true } > parent_id: { type: integer } > relations: > Parent: {class: Enseignement, local: parent_id, foreign: id, type: > one} > > I just want to change the value of the "valide" field form the object > with id 15 and then, I get these queries : > > UPDATE enseignement SET updated_at = '2011-05-17 11:41:41' WHERE id > = '13' > UPDATE enseignement SET valide = '1', updated_at = '2011-05-17 > 11:41:41' WHERE id = '15' > DELETE FROM enseignement WHERE id = '13' > > I'm currently trying to find out the problem, but maybe it's a flawed > model or known problem. Any idea on that ? > > Regards, > > Mikael Kermorgant -- 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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en