/** * Get the associated Discipline object * * @param PropelPDO Optional Connection object. * @return Discipline The associated Discipline object. * @throws PropelException */ public function getDiscipline(PropelPDO $con = null) { if ($this->aDiscipline === null && $this->discipline_id !== null) { $c = new Criteria(DisciplinePeer::DATABASE_NAME); $c->add(DisciplinePeer::ID, $this->discipline_id); $this->aDiscipline = DisciplinePeer::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->aDiscipline->addCourseDisciplineAssociations($this); */ } return $this->aDiscipline; }