/** * Get the associated Local object * * @param PropelPDO Optional Connection object. * @return Local The associated Local object. * @throws PropelException */ public function getLocal(PropelPDO $con = null) { if ($this->aLocal === null && $this->local_id !== null) { $this->aLocal = LocalPeer::retrieveByPk($this->local_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->aLocal->addGradeunits($this); */ } return $this->aLocal; }