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