/** * Exclude object from result * * @param ChildRRightsForformat $rRightsForformat Object to remove from the list of results * * @return $this|ChildRRightsForformatQuery The current query, for fluid interface */ public function prune($rRightsForformat = null) { if ($rRightsForformat) { $this->addCond('pruneCond0', $this->getAliasedColName(RRightsForformatTableMap::COL__RIGHTID), $rRightsForformat->getRightid(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(RRightsForformatTableMap::COL__FORMATID), $rRightsForformat->getFormatid(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); } return $this; }
/** * Filter the query by a related \RRightsForformat object * * @param \RRightsForformat|ObjectCollection $rRightsForformat the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildFormatsQuery The current query, for fluid interface */ public function filterByRRightsForformat($rRightsForformat, $comparison = null) { if ($rRightsForformat instanceof \RRightsForformat) { return $this->addUsingAlias(FormatsTableMap::COL_ID, $rRightsForformat->getFormatid(), $comparison); } elseif ($rRightsForformat instanceof ObjectCollection) { return $this->useRRightsForformatQuery()->filterByPrimaryKeys($rRightsForformat->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRRightsForformat() only accepts arguments of type \\RRightsForformat or Collection'); } }