/** * Returns a peer instance associated with this om. * * Since Peer classes are not to have any instance attributes, this method returns the * same instance for all member of this class. The method could therefore * be static, but this would prevent one from overriding the behavior. * * @return sfGuardUserGroupPeer */ public function getPeer() { if (self::$peer === null) { self::$peer = new sfGuardUserGroupPeer(); } return self::$peer; }
public function save(PropelPDO $con = null) { parent::save($con); $this->getsfGuardUser($con)->reloadGroupsAndPermissions(); }
public function save(Doctrine_Connection $conn = null) { parent::save($conn); $this->getsfGuardUser()->reloadGroupsAndPermissions(); }
public function postSave($event) { parent::postSave($event); $this->getUser()->reloadGroupsAndPermissions(); }