[symfony-users] Re: DOCTRINE - load data to tables which has got a relation !!

2009-10-26 Thread Alexandre SALOME
1. You mustn't set 1 as user_id but the alias dziobacz. 2. You mustn't set id column 3. You must set different names for fixtures. 4. You must use relation names for fixtures Well, let's rewrite : sfGuardUser: sgu_dziobacz: username: dziobacz password: haslo123

[symfony-users] Re: DOCTRINE - load data to tables which has got a relation !!

2009-10-26 Thread david
If you add a foreign alias to your relation then it's even easier... relations: sfGuardUser: class: sfGuardUser local: user_id foreign: id type: one onDelete: CASCADE onUpdate: CASCADE foreignAlias: Profile sfGuardUser: dziobacz:

[symfony-users] Re: DOCTRINE - load data to tables which has got a relation !!

2009-10-26 Thread dziobacz
Alexandre thx a lot :) david also thx but I use Alexandre idea :) On 26 Paź, 12:22, david da...@inspiredthinking.co.uk wrote: If you add a foreign alias to your relation then it's even easier...   relations:     sfGuardUser:       class: sfGuardUser       local: user_id