Esempio n. 1
0
 /**
  * Filter the query by a related \RRightsFortemplate object
  *
  * @param \RRightsFortemplate|ObjectCollection $rRightsFortemplate 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 filterByRRightsFortemplate($rRightsFortemplate, $comparison = null)
 {
     if ($rRightsFortemplate instanceof \RRightsFortemplate) {
         return $this->addUsingAlias(RightsTableMap::COL_ID, $rRightsFortemplate->getRightid(), $comparison);
     } elseif ($rRightsFortemplate instanceof ObjectCollection) {
         return $this->useRRightsFortemplateQuery()->filterByPrimaryKeys($rRightsFortemplate->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByRRightsFortemplate() only accepts arguments of type \\RRightsFortemplate or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildRRightsFortemplate $rRightsFortemplate Object to remove from the list of results
  *
  * @return $this|ChildRRightsFortemplateQuery The current query, for fluid interface
  */
 public function prune($rRightsFortemplate = null)
 {
     if ($rRightsFortemplate) {
         $this->addCond('pruneCond0', $this->getAliasedColName(RRightsFortemplateTableMap::COL__RIGHTID), $rRightsFortemplate->getRightid(), Criteria::NOT_EQUAL);
         $this->addCond('pruneCond1', $this->getAliasedColName(RRightsFortemplateTableMap::COL__TEMPLATEID), $rRightsFortemplate->getTemplateid(), Criteria::NOT_EQUAL);
         $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
     }
     return $this;
 }