public function save(Doctrine_Connection $con = null)
 {
     $id = $this->getId();
     // Saving notification only when user doesn't notify himself
     if (!$id && $this->getUid() != $this->getOwner()) {
         $q = parent::save();
     } else {
         $q = false;
     }
     return $q;
 }
Esempio n. 2
0
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }