/** * Filter the query by a related \RRightsForbook object * * @param \RRightsForbook|ObjectCollection $rRightsForbook the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildRightsQuery The current query, for fluid interface */ public function filterByRRightsForbook($rRightsForbook, $comparison = null) { if ($rRightsForbook instanceof \RRightsForbook) { return $this->addUsingAlias(RightsTableMap::COL_ID, $rRightsForbook->getRightid(), $comparison); } elseif ($rRightsForbook instanceof ObjectCollection) { return $this->useRRightsForbookQuery()->filterByPrimaryKeys($rRightsForbook->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRRightsForbook() only accepts arguments of type \\RRightsForbook or Collection'); } }
/** * Exclude object from result * * @param ChildRRightsForbook $rRightsForbook Object to remove from the list of results * * @return $this|ChildRRightsForbookQuery The current query, for fluid interface */ public function prune($rRightsForbook = null) { if ($rRightsForbook) { $this->addCond('pruneCond0', $this->getAliasedColName(RRightsForbookTableMap::COL__RIGHTID), $rRightsForbook->getRightid(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(RRightsForbookTableMap::COL__BOOKID), $rRightsForbook->getBookid(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); } return $this; }