コード例 #1
0
ファイル: categoryEntry.php プロジェクト: panigh/server
 public function preSave(PropelPDO $con = null)
 {
     if ($this->getStatus() != CategoryEntryStatus::DELETED) {
         $category = categoryPeer::retrieveByPK($this->getCategoryId());
         if (!$category) {
             return false;
         }
         $this->setCategoryFullIds($category->getFullIds());
     }
     return parent::preSave();
 }
コード例 #2
0
 public function preSave(PropelPDO $con = null)
 {
     $category = categoryPeer::retrieveByPK($this->getCategoryId());
     $this->setCategoryFullIds($category->getFullIds());
     return parent::preSave();
 }