[symfony-users] Re: doctrine many to one one the same table

2010-01-15 Thread Tom Ptacnik
I was thinking about it and I'm not right... You can, of course, display all folders in multiselectbox (child folders, free folders and folders with different parent folder) but, when you select a folder which has another parent, and set it as a child folder for actual folder, it will be child onl

[symfony-users] Re: doctrine many to one one the same table

2010-01-15 Thread Tom Ptacnik
Yes, you are right. In this multiselect box can be all his children, and also all folders without a parent. But there can't be a folders which have another parent folder. On 12 led, 19:33, smellycat37 wrote: > if a folder has a parent with the reference on folder_id, he has > children with the s

[symfony-users] Re: doctrine many to one one the same table

2010-01-12 Thread smellycat37
if a folder has a parent with the reference on folder_id, he has children with the same reference... so it's a relation 1:n... so it could be possible to have in a form : 1- the parent (the folder who have as id the folder_id of the current item) in a select box 2- the children (all folders who hav

[symfony-users] Re: doctrine many to one one the same table

2010-01-12 Thread Tom Ptacnik
I think that if you want a multiselect box for the children you will need a many to many relationship... think about how to store the informations from this multiselect box... Or if you don't want a M:N relationship then you have to not show (in this multiselect box) a folders which already has a