Symfony – Unknown record property / related component “sfguardgroup” on “sfGuardGroupPermission” when using sfGuard plugin

I came across a problem recently using sfGuard plugin on symfony.

Symfony stephan champagne

logo symfony

Strangely enought my associates had NO problems at all with the same svn checkout that I did but nevertheless here is the solution:

Error Message : Unknown record property / related component “sfguardgroup” on “sfGuardGroupPermission”

Solution : Remove all information in data/sql/shema.sql regarding sfGuard as it is already present in the plugins directory. Then you might need to put the capitals to the sfGuardGroup and sfGuardPermission component in data/sql/fixtures/sfGuard.yml.

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

You can find a forum on the matter : here

Leave a Reply