Esempio n. 1
0
 /**
  * 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 ChildRightsQuery The current query, for fluid interface
  */
 public function filterByRRightsForformat($rRightsForformat, $comparison = null)
 {
     if ($rRightsForformat instanceof \RRightsForformat) {
         return $this->addUsingAlias(RightsTableMap::COL_ID, $rRightsForformat->getRightid(), $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');
     }
 }