/** * Exclude object from result * * @param JEleveGroupe $jEleveGroupe Object to remove from the list of results * * @return JEleveGroupeQuery The current query, for fluid interface */ public function prune($jEleveGroupe = null) { if ($jEleveGroupe) { $this->addCond('pruneCond0', $this->getAliasedColName(JEleveGroupePeer::LOGIN), $jEleveGroupe->getLogin(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(JEleveGroupePeer::ID_GROUPE), $jEleveGroupe->getIdGroupe(), Criteria::NOT_EQUAL); $this->addCond('pruneCond2', $this->getAliasedColName(JEleveGroupePeer::PERIODE), $jEleveGroupe->getPeriode(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1', 'pruneCond2'), Criteria::LOGICAL_OR); } return $this; }
/** * Filter the query by a related JEleveGroupe object * * @param JEleveGroupe $jEleveGroupe 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 filterByJEleveGroupe($jEleveGroupe, $comparison = null) { if ($jEleveGroupe instanceof JEleveGroupe) { return $this ->addUsingAlias(ElevePeer::LOGIN, $jEleveGroupe->getLogin(), $comparison); } elseif ($jEleveGroupe instanceof PropelCollection) { return $this ->useJEleveGroupeQuery() ->filterByPrimaryKeys($jEleveGroupe->getPrimaryKeys()) ->endUse(); } else { throw new PropelException('filterByJEleveGroupe() only accepts arguments of type JEleveGroupe or PropelCollection'); } }