コード例 #1
0
 public function save($con = null)
 {
     $object = parent::save($con);
     if ($object) {
         sfContext::getInstance()->getUser()->login($object);
     }
     return $object;
 }
コード例 #2
0
 public function save($con = null)
 {
     $this->getUser()->setAttribute('incomplete', false, 'twitter');
     return parent::save($con);
 }