/** * Get the associated Zone object * * @param PropelPDO Optional Connection object. * @return Zone The associated Zone object. * @throws PropelException */ public function getZoneRelatedByParentZone(PropelPDO $con = null) { if ($this->aZoneRelatedByParentZone === null && $this->parent_zone !== null) { $c = new Criteria(ZonePeer::DATABASE_NAME); $c->add(ZonePeer::ID, $this->parent_zone); $this->aZoneRelatedByParentZone = ZonePeer::doSelectOne($c, $con); /* 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->aZoneRelatedByParentZone->addZonesRelatedByParentZone($this); */ } return $this->aZoneRelatedByParentZone; }