sfGuardUserProfile and load of fixtures fails

Questions relating to sfGuardPlugin or other user management plugins

sfGuardUserProfile and load of fixtures fails

Postby gavelin » Fri Sep 17, 2010 9:26 am

i have installed sfForkedDoctrineApply and sfDoctrineGuard on symfony 1.4

in my fixture.yml i want to create a sfGuardUser and for this user, a sfGuardUserProfile.
here's what i do in the fixture.yml :

Code: Select all
sfGuardUser:
  sgu_admin:
    username:       admin
    password:       admin
    is_super_admin: true

sfGuardUserProfile:
  mon_admin:
    email: toto@titi.com
    sfGuardUser: sgu_admin 


i launch data-load ...and then i get an error :
Unknown record property / related component "sfguarduser" on "sfGuardUserProfile"

if i delete the profile, it works...
Code: Select all
sfGuardUserProfile:
  mon_admin:
    email: toto@titi.com
    sfGuardUser: sgu_admin 


i cant understand what happens !! i try to rebuild all, it's the same error !
Anyone has an idea ?
gavelin
Junior Member
 
Posts: 8
Joined: Thu Sep 16, 2010 4:57 pm

Re: sfGuardUserProfile and load of fixtures fails

Postby claudia_k » Sat Sep 18, 2010 7:11 pm

This works for me - maybe it helps you:
Code: Select all
sfGuardUser:
  foobar:
    username:       john_doe
    password:       secret
    is_super_admin: true
    Profile:
      first_name: John
      last_name: Doe
      email: john.doe@example.com


Hth

Claudia
claudia_k
Faithful Member
 
Posts: 265
Joined: Mon Jun 21, 2010 8:12 pm
Location: Luxembourg


Return to User management plugins

Who is online

Users browsing this forum: No registered users and 1 guest