/** * Filter the query by a related Eleve object * * @param Eleve|PropelCollection $eleve The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return JEleveGroupeQuery The current query, for fluid interface */ public function filterByEleve($eleve, $comparison = null) { if ($eleve instanceof Eleve) { return $this ->addUsingAlias(JEleveGroupePeer::LOGIN, $eleve->getLogin(), $comparison); } elseif ($eleve instanceof PropelCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this ->addUsingAlias(JEleveGroupePeer::LOGIN, $eleve->toKeyValue('PrimaryKey', 'Login'), $comparison); } else { throw new PropelException('filterByEleve() only accepts arguments of type Eleve or PropelCollection'); } }
/** * Declares an association between this object and a Eleve object. * * @param Eleve $v * @return EleveRegimeDoublant The current object (for fluent API support) * @throws PropelException */ public function setEleve(Eleve $v = null) { if ($v === null) { $this->setLogin(NULL); } else { $this->setLogin($v->getLogin()); } $this->aEleve = $v; // Add binding for other direction of this 1:1 relationship. if ($v !== null) { $v->setEleveRegimeDoublant($this); } return $this; }
/** * Declares an association between this object and a Eleve object. * * @param Eleve $v * @return JEleveCpe The current object (for fluent API support) * @throws PropelException */ public function setEleve(Eleve $v = null) { if ($v === null) { $this->setELogin(''); } else { $this->setELogin($v->getLogin()); } $this->aEleve = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the Eleve object, it will not be re-added. if ($v !== null) { $v->addJEleveCpe($this); } return $this; }