/** * Get the associated Coordinator object * * @param PropelPDO Optional Connection object. * @return Coordinator The associated Coordinator object. * @throws PropelException */ public function getCoordinator(PropelPDO $con = null) { if ($this->aCoordinator === null && $this->coordinator_id !== null) { $c = new Criteria(CoordinatorPeer::DATABASE_NAME); $c->add(CoordinatorPeer::ID, $this->coordinator_id); $this->aCoordinator = CoordinatorPeer::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->aCoordinator->addMissions($this); */ } return $this->aCoordinator; }