/** * Filter the query by a related JGroupesClasses object * * @param JGroupesClasses $jGroupesClasses the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return GroupeQuery The current query, for fluid interface */ public function filterByJGroupesClasses($jGroupesClasses, $comparison = null) { if ($jGroupesClasses instanceof JGroupesClasses) { return $this ->addUsingAlias(GroupePeer::ID, $jGroupesClasses->getIdGroupe(), $comparison); } elseif ($jGroupesClasses instanceof PropelCollection) { return $this ->useJGroupesClassesQuery() ->filterByPrimaryKeys($jGroupesClasses->getPrimaryKeys()) ->endUse(); } else { throw new PropelException('filterByJGroupesClasses() only accepts arguments of type JGroupesClasses or PropelCollection'); } }
/** * Exclude object from result * * @param JGroupesClasses $jGroupesClasses Object to remove from the list of results * * @return JGroupesClassesQuery The current query, for fluid interface */ public function prune($jGroupesClasses = null) { if ($jGroupesClasses) { $this->addCond('pruneCond0', $this->getAliasedColName(JGroupesClassesPeer::ID_GROUPE), $jGroupesClasses->getIdGroupe(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(JGroupesClassesPeer::ID_CLASSE), $jGroupesClasses->getIdClasse(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); } return $this; }