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