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 parent ... because
you can't store it's folder_id if it already has a parent...

I hope you will understand my ideas :)


On 12 led, 01:16, smellycat37 <[email protected]> wrote:
> Hello,
>
> I have this schema structure
> Folder:
>   columns:
>     id:  { type: integer, primary: true }
>     name: { type: string(50), notnull: true }
>     folder_id: { type: integer, notnull: true }
>   relations:
>     Parent: {onDelete: CASCADE, local: folder_id, foreign: id,
> foreignAlias: children}
>
> the "symfony doctrine:build-form" commande build the
> BaseFolderForm.class.php with two widgets :
> 1 - the id widget
> 2 - folder_id a sfWidgetFormDoctrineChoice (select box) containing the
> parent
>
> But i need a third one:
> 3 - folders_list a sfWidgetFormDoctrineChoice (multi select box)
> containing all the children
>
> is it possible?
>
> If you have any idea, thanks for your response,
-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to