This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » symfony 1.3 and 1.4 » [SOLVED] sfDoctrineGuardPlugin - Error during data-load
[SOLVED] sfDoctrineGuardPlugin - Error during data-load [message #92047] Fri, 22 January 2010 16:10 Go to previous message
Choup  is currently offline Choup
Messages: 9
Registered: January 2010
Location: France
Junior Member
Hello,

I've a problem with the plugin sfDoctrineGuardPlugin. I have follow the readme of the plugin ( http://www.symfony-project.org/plugins/sfdoctrineGuardPlugin ) and all seems to be ok.
I was able to be authentify with the admin user, and use my modules. But when i've tried to create a relation into my table 'personne' with the table 'sfGuardUser' that become dramatic.

I've create a foreign key 'user_id' in 'personne' which references to 'id' in the table 'sfGuardUser'. After that, impossible to do a ./symfony doctrine:data-load task correctly :
>> doctrine  Loading data fixtures from "/hom...eon/Intranet-CCTB/data/fixtures"
>> doctrine  Loading data fixtures from "/hom...ctrineGuardPlugin/data/fixtures"

                                                                                          
  Unknown record property / related component "sfguardgroup" on "sfGuardGroupPermission"


And then nothing is add in my database, even if i change the data which sould be added, if i delete the admin data in my database, and even if i delete the foreign key relation .

My data/fixtures/sfGuard.yml is :
sfGuardUser:
  sgu_admin:
    username:       admin
    password:       admin
    is_super_admin: true

sfGuardPermission:
  sgp_admin:
    name:           admin
    description:    Administrator permission

sfGuardGroup:
  sgg_admin:
    name:           admin
    description:    Administrator group

sfGuardGroupPermission:
  sggp_admin:
    sfGuardGroup:       sgg_admin
    sfGuardPermission:  sgp_admin

sfGuardUserGroup:
  sgug_admin:
    sfGuardGroup:       sgg_admin
    sfGuardUser:        sgu_admin


So if someone could save me ... Smile

[Updated on: Tue, 26 January 2010 09:10]

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Simple One-to-many with doctrine
Next Topic:doctrine:build-schema doesn't generate foreign keys
Goto Forum:

  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software