To achieve this create a joining entity (UserGroup) and link it between the User and Group entities with One to Many and Many to One. It is no longer 'considered' a many to many according to doctrine, but a 1:m:1.
User has many UserGroups Group has many UserGroups Then you can define what fields you want to use on the UserGroups table. It complicates the way you need to access methods through the relationship but will work if you plan it properly. t On Tue, Apr 19, 2011 at 21:53, symfonyMan <ezziani.cha...@gmail.com> wrote: > Hello, > > I think that the question is in the object :) > > i explain : a have 2 entities : user and groups that are associated > with ManyToMany. > It generate 3 tables in database : user, groups and > user_groups(user_id, groups_id). > > my probleme is, I want to add a column in "user_groups" (type), I > don't know how to do that with doctrine !! > > any ideas ?? > > Thanks > > -- > 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 > -- 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