> Your relation name is "sfGuardUser" not "User" :P Edit you fixture and
> change "User: sgu_user1" to "sfGuardUser: sgu_user1" or edit you
> schema end change:
> sfGuardUser:
> local: user_id
> foreign: id
> foreignAlias: profile
> to
> User:
> class: sfGuardUser
> local: user_id
> foreign: id
> foreignAlias: profile
> On 10 Lip, 13:42, Kailash <manelp...@gmail.com> wrote:
> > Hi,
> > I'm integrating sfDoctrieGuard into Symfony and Doctrine return an
> > error when i load de fixtures:
> > "Unknown method sfGuardUserProfile::setUser"
> > Mi schema.yml is:
> > ...
> > sfGuardUserProfile:
> > className: sfGuardUserProfile
> > tableName: sf_guard_user_profile
> > columns:
> > id:
> > type: integer(4)
> > unsigned: 1
> > primary: true
> > autoincrement: true
> > user_id:
> > type: integer(4)
> > player_id:
> > type: integer(4)
> > unsigned: 1
> > first_name:
> > string(255)
> > last_name:
> > string(255)
> > email:
> > string(255)
> > relations:
> > Player:
> > local: player_id
> > foreign: id
> > sfGuardUser:
> > local: user_id
> > foreign: id
> > foreignAlias: profile
> > ...
> > and the fixture file users.yml is:
> > sfGuardUser:
> > sgu_user1:
> > username: User1
> > password: pass_user1
> > is_super_admin: false
> > sfGuardUserProfile:
> > sgup_anta:
> > User: sgu_user1
> > Player: player1
> > first_name: Name
> > last_name: Last Name
> > email: play...@mail.foo
> > What am I doing wrong?
> > Thanks a lot