/** * Get the associated Eleve object * * @param PropelPDO Optional Connection object. * @return Eleve The associated Eleve object. * @throws PropelException */ public function getEleve(PropelPDO $con = null) { if ($this->aEleve === null && (($this->login !== "" && $this->login !== null))) { $this->aEleve = EleveQuery::create() ->filterByEleveRegimeDoublant($this) // here ->findOne($con); // Because this foreign key represents a one-to-one relationship, we will create a bi-directional association. $this->aEleve->setEleveRegimeDoublant($this); } return $this->aEleve; }