/** * Exclude object from result * * @param ChildRRightsForuser $rRightsForuser Object to remove from the list of results * * @return $this|ChildRRightsForuserQuery The current query, for fluid interface */ public function prune($rRightsForuser = null) { if ($rRightsForuser) { $this->addCond('pruneCond0', $this->getAliasedColName(RRightsForuserTableMap::COL__RIGHTID), $rRightsForuser->getRightid(), Criteria::NOT_EQUAL); $this->addCond('pruneCond1', $this->getAliasedColName(RRightsForuserTableMap::COL__USERID), $rRightsForuser->getUserid(), Criteria::NOT_EQUAL); $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR); } return $this; }
/** * Filter the query by a related \RRightsForuser object * * @param \RRightsForuser|ObjectCollection $rRightsForuser the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildUsersQuery The current query, for fluid interface */ public function filterByRRightsForuser($rRightsForuser, $comparison = null) { if ($rRightsForuser instanceof \RRightsForuser) { return $this->addUsingAlias(UsersTableMap::COL_ID, $rRightsForuser->getUserid(), $comparison); } elseif ($rRightsForuser instanceof ObjectCollection) { return $this->useRRightsForuserQuery()->filterByPrimaryKeys($rRightsForuser->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByRRightsForuser() only accepts arguments of type \\RRightsForuser or Collection'); } }