/** * Filter the query by a related Moviespersons object * * @param Moviespersons $moviespersons the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return PersonFUQuery The current query, for fluid interface */ public function filterByMoviespersons($moviespersons, $comparison = null) { if ($moviespersons instanceof Moviespersons) { return $this->addUsingAlias(PersonFUPeer::ID, $moviespersons->getPersonid(), $comparison); } elseif ($moviespersons instanceof PropelCollection) { return $this->useMoviespersonsQuery()->filterByPrimaryKeys($moviespersons->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByMoviespersons() only accepts arguments of type Moviespersons or PropelCollection'); } }
/** * Exclude object from result * * @param Moviespersons $moviespersons Object to remove from the list of results * * @return MoviespersonsQuery The current query, for fluid interface */ public function prune($moviespersons = null) { if ($moviespersons) { $this->addCond('pruneCond0', $this->getAliasedColName(MoviespersonsPeer::MOVIEID), $moviespersons->getMovieid(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(MoviespersonsPeer::PERSONID), $moviespersons->getPersonid(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); } return $this; }