/** * Exclude object from result * * @param CreditEcts $creditEcts Object to remove from the list of results * * @return CreditEctsQuery The current query, for fluid interface */ public function prune($creditEcts = null) { if ($creditEcts) { $this->addCond('pruneCond0', $this->getAliasedColName(CreditEctsPeer::ID), $creditEcts->getId(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(CreditEctsPeer::ID_ELEVE), $creditEcts->getIdEleve(), Criteria::NOT_EQUAL); $this->addCond('pruneCond2', $this->getAliasedColName(CreditEctsPeer::NUM_PERIODE), $creditEcts->getNumPeriode(), Criteria::NOT_EQUAL); $this->addCond('pruneCond3', $this->getAliasedColName(CreditEctsPeer::ID_GROUPE), $creditEcts->getIdGroupe(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1', 'pruneCond2', 'pruneCond3'), Criteria::LOGICAL_OR); } return $this; }
/** * Filter the query by a related CreditEcts object * * @param CreditEcts $creditEcts 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 filterByCreditEcts($creditEcts, $comparison = null) { if ($creditEcts instanceof CreditEcts) { return $this ->addUsingAlias(ElevePeer::ID_ELEVE, $creditEcts->getIdEleve(), $comparison); } elseif ($creditEcts instanceof PropelCollection) { return $this ->useCreditEctsQuery() ->filterByPrimaryKeys($creditEcts->getPrimaryKeys()) ->endUse(); } else { throw new PropelException('filterByCreditEcts() only accepts arguments of type CreditEcts or PropelCollection'); } }