Exemple #1
0
 public function save(PropelPDO $con = null)
 {
     $isNew = $this->isNew();
     $ret = parent::save($con);
     if ($isNew) {
         $author = $this->getAuthor();
         if ($author) {
             $author->setPluginsCount(intval($author->getPluginsCount()) + 1);
             $author->save();
         }
     }
     return $ret;
 }