I'm a beginner, but I think that maybe you could solve like following:

- idgroup in "team" table => id
- idgroup in "useraccount" => group_id

I hope this is helpful. Sorry for my bad english.

Silvio


-----Messaggio originale-----
Da: [email protected] [mailto:[email protected]]
Per conto di leader
Inviato: martedì 21 luglio 2009 15.36
A: symfony users
Cc: [email protected]
Oggetto: [symfony-users] problem with foreign key field


Hi,
I'm a newhire in symfony,
I created an admin module for my Team Model (team : group)
and I created an admin module for Useraccount model.

when I clic on new in Useraccount admin module I have e form to enter
information, but for TeamID : i have a TextBox field... so i have to
enter manually the id ... normally it should print a comboBox field to
choose the TEam id ...
in the scheama I have This :
.
.
.

team:
    _attributes: { phpName: Team }
    IDGROUP: { type: DECIMAL, size: '8', scale: '0', primaryKey: true,
required: true }
    DESCRIPTION: { type: VARCHAR, size: '1024', required: false }


 useraccount:
    _attributes: { phpName: Useraccount }
    IDUSER: { type: DECIMAL, size: '8', scale: '0', primaryKey: true,
required: true }
    IDGROUP: { type: DECIMAL, size: '8', scale: '0', required: true }
    NAME: { type: VARCHAR, size: '1024', required: false }
    LASTNAME: { type: VARCHAR, size: '1024', required: false }
    EMAIL: { type: VARCHAR, size: '1024', required: false }
    PASSWORD: { type: VARCHAR, size: '1024', required: false }
    LEVEL: { type: DECIMAL, size: '8', scale: '0', required: false }
    _indexes: { FK_BELONGUG: [IDGROUP] }
..............





Controllato da AVG - www.avg.com 
Versione: 8.5.387 / Database dei virus: 270.13.20/2251 -  Data di rilascio:
07/20/09 18:29:00


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