Hi
I'm new with 1.2 myself ... and have not really made a new project in 1.2
yet ... so far only been upgrading my existing projects from 1.0
Never the less you could try and put the following parameters in the
attribute definition
{ type: INTEGER, required: true, default: '', foreignTable: user,
foreignReference: user_id, onDelete: RESTRICT, onUpdate: RESTRICT }
or could simply specify the foreign keys as user_id: ~ (but i assume you
have a good reason not going this way)
On Tue, Jul 21, 2009 at 3:35 PM, leader <[email protected]> wrote:
>
> 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] }
> ..............
>
>
>
> >
>
--
kind regards
Farrukh K. Muhammad
skype id - mobileweaver
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---