> declaration to schema.yml as such: > > propel: > _attributes: { package: "plugins.sfGuardPlugin.lib.model" } > sf_guard_user: > _attributes: { phpName: sfGuardUser } > id: >
Ok, it's the solution i found but when i declare user like this: _attributes : { package: "plugins.sfGuardPlugin.lib.model" } sf_guard_user: _attributes: { phpName: sfGuardUser } id: propel: sf_guard_user_profile: _attributes: { phpName: sfGuardUserProfile } user_id: { type: integer, primaryKey: true, foreignTable: sf_guard_user, foreignReference: id, onDelete: cascade } nom: varchar(20) prenom: varchar(20) in /apps/monprojet/data/fixtures/test.yml sfGuardUser: moi: username: moi password: admin is_super_admin: true sfGuardUserProfile: moi: user_id: moi nom: nom prenom: prenom etc ... sfGuardUser: toi: etc .... then when i build the model with more one entry, propel erase all data and keep just the first !!! I don't if mine or if i don't really understand what i do. when i try just with one record with sfGuardUser and sfGuardUserPlugin, the foreign key on the profil is not the good value sfGuardUser PK username 1 moi sfGuardUserProfile PK user_id nom 1 0 moi normaly the user_id is 1 not 0. j'en ai perdu mon latin olivier,thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---