/** * Filter the query by a related CreditEctsGlobal object * * @param CreditEctsGlobal $creditEctsGlobal the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return EleveQuery The current query, for fluid interface */ public function filterByCreditEctsGlobal($creditEctsGlobal, $comparison = null) { if ($creditEctsGlobal instanceof CreditEctsGlobal) { return $this ->addUsingAlias(ElevePeer::ID_ELEVE, $creditEctsGlobal->getIdEleve(), $comparison); } elseif ($creditEctsGlobal instanceof PropelCollection) { return $this ->useCreditEctsGlobalQuery() ->filterByPrimaryKeys($creditEctsGlobal->getPrimaryKeys()) ->endUse(); } else { throw new PropelException('filterByCreditEctsGlobal() only accepts arguments of type CreditEctsGlobal or PropelCollection'); } }