Unknown record property / related component "permissions" on "sfGuardUser"
I'm having a 开发者_如何转开发weird problem with my symfony backend. I can log in once, but after that I get
Unknown record property / related component "permissions" on "sfGuardUser"
Also, when I do login and try to edit a record from any module, I get
Fatal error: Call to a member function setLabel() on a non-object in plugins/sfDoctrineGuardPlugin/lib/form/doctrine/base/BasesfGuardUserAdminForm.class.php on line 28
Please help!
I found the problem. I had to delete all SFGuard Forms from lib/form/doctrine/base and reinstall.
Reinstalling did not help me. After all, this is a new install.
I had to modify the lines in /plugins/sfDoctrineGuardPlugin/lib/form/doctrine/base/BasesfGuardUserAdminForm.class
//Fatal error: Call to a member function setLabel()
if(isset($this->widgetSchema['groups_list']))
{
$this->widgetSchema['groups_list']->setLabel('Groups');
}
if (isset($this->widgetSchema['permissions_list']))
{
$this->widgetSchema['permissions_list']->setLabel('Permissions');
}
in order to get to the next error of
Unknown record property / related component "permissions" on "sfGuardUser"
精彩评论