/** * Get the associated ProductCategory object * * @param PropelPDO Optional Connection object. * @return ProductCategory The associated ProductCategory object. * @throws PropelException */ public function getProductCategoryRelatedByParentId(PropelPDO $con = null) { if ($this->aProductCategoryRelatedByParentId === null && $this->parent_id !== null) { $this->aProductCategoryRelatedByParentId = ProductCategoryPeer::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->aProductCategoryRelatedByParentId->addProductCategorysRelatedByParentId($this); */ } return $this->aProductCategoryRelatedByParentId; }