/** * 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; }