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