/** * Exclude object from result * * @param CreditEctsGlobal $creditEctsGlobal Object to remove from the list of results * * @return CreditEctsGlobalQuery The current query, for fluid interface */ public function prune($creditEctsGlobal = null) { if ($creditEctsGlobal) { $this->addCond('pruneCond0', $this->getAliasedColName(CreditEctsGlobalPeer::ID), $creditEctsGlobal->getId(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(CreditEctsGlobalPeer::ID_ELEVE), $creditEctsGlobal->getIdEleve(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); } return $this; }
/** * 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'); } }