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