Hi I was getting some weird errors when generating forms (symfony1.1
propel:build-forms) like these:

Fatal error: Declaration of PluginsfGuardUserGroup::save() must be
compatible with that of Persistent::save() in /var/websites/sfBlog/www/
plugins/sfGuardPlugin/lib/model/plugin/PluginsfGuardUserPermission.php
on line 18

So I checked out, in that file PluginsfGuardUserPermission.php I found
this:

class PluginsfGuardUserPermission extends BasesfGuardUserPermission
{
  public function save($con = null)
  {
    parent::save($con);

    $this->getsfGuardUser($con)->reloadGroupsAndPermissions();
  }
}

but in BasesfGuardUserPermission line 329 is this:
public function save(PropelPDO $con = null)

so I updated the error file PluginsfGuardUserPermission.php adding to
the $con var the ClassName "PropelPDO" so it looks like:
  public function save(PropelPDO $con = null)

and the error has gone: then a new one:
Fatal error: Declaration of PluginsfGuardUser::delete() must be
compatible with that of Persistent::delete() in /var/websites/sfBlog/
www/plugins/sfGuardPlugin/lib/model/plugin/PluginsfGuardUser.php on
line 18

I did the same and this one has gone too.

So. I'm wondering if this is a bug of sfGuardPlugin because I've
tested with the variations and everything seems to work fine but I
want your oppinions about it.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to