public function getParentName() { $parent = CatSubjectPeer::retrieveByPK($this->getParent()); if ($parent != null) { return $parent->getName(); } else { return '-'; } }
public function getCatSubject($con = null) { include_once 'lib/model/om/BaseCatSubjectPeer.php'; if ($this->aCatSubject === null && $this->cat_subject_id !== null) { $this->aCatSubject = CatSubjectPeer::retrieveByPK($this->cat_subject_id, $con); } return $this->aCatSubject; }
public function getCatSubjectRelatedByParent($con = null) { include_once 'lib/model/om/BaseCatSubjectPeer.php'; if ($this->aCatSubjectRelatedByParent === null && $this->parent !== null) { $this->aCatSubjectRelatedByParent = CatSubjectPeer::retrieveByPK($this->parent, $con); } return $this->aCatSubjectRelatedByParent; }