Nevermind, I got it figured.  Had to create a m-n relation within the  
base user class.  It is not enough that the relationship is already  
referenced via UserGroup.  Added the following in schema.yml and  
rebuilt the models:

User:
   relations:
     .....
     Groups:
       class: Group
       refClass: UserGroup
   columns:
     .....


Charley

On Oct 27, 2007, at 12:19 AM, Charley Tiggs wrote:

>
> I've created an admin for a users table.  I need a double list in
> order to select the groups the user belongs to.  But I'm having a
> hard time figuring out how to do it.  Here's what I have in my
> generator.yml:
>
> generator:
>    class:              sfDoctrineAdminGenerator
>    param:
>      model_class:      User
>      theme:            default
>
>      edit:
>        title: Editing user "%%fullname%%"
>        fields:
>          UserGroup: { type: doctrine_admin_double_list }
>        display:
>          "User": [first_name, last_name, email_address]
>          "Workflow": [permission_level_id, username, password,
> UserGroup]
>
> The group table has about 20 records.  Yet, the above doesn't display
> any values to choose from in the double list.  Can someone tell me
> what I'm doing incorrectly?
>
> Charley
>
> >


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