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(); }
public function preSave(PropelPDO $con = null) { $category = categoryPeer::retrieveByPK($this->getCategoryId()); $this->setCategoryFullIds($category->getFullIds()); return parent::preSave(); }