/** * Get the associated Page object * * @param PropelPDO Optional Connection object. * @return Page The associated Page object. * @throws PropelException */ public function getPageRelatedByParentId(PropelPDO $con = null) { if ($this->aPageRelatedByParentId === null && ($this->parent_id !== "" && $this->parent_id !== null)) { $this->aPageRelatedByParentId = PagePeer::retrieveByPk($this->parent_id); /* The following can be used additionally to guarantee the related object contains a reference to this object. This level of coupling may, however, be undesirable since it could result in an only partially populated collection in the referenced object. $this->aPageRelatedByParentId->addPagesRelatedByParentId($this); */ } return $this->aPageRelatedByParentId; }