Ejemplo n.º 1
0
 /**
  * Filter the query by a related \RTemplatenamesForbook object
  *
  * @param \RTemplatenamesForbook|ObjectCollection $rTemplatenamesForbook the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildTemplatenamesQuery The current query, for fluid interface
  */
 public function filterByRTemplatenamesForbook($rTemplatenamesForbook, $comparison = null)
 {
     if ($rTemplatenamesForbook instanceof \RTemplatenamesForbook) {
         return $this->addUsingAlias(TemplatenamesTableMap::COL_ID, $rTemplatenamesForbook->getTemplateid(), $comparison);
     } elseif ($rTemplatenamesForbook instanceof ObjectCollection) {
         return $this->useRTemplatenamesForbookQuery()->filterByPrimaryKeys($rTemplatenamesForbook->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByRTemplatenamesForbook() only accepts arguments of type \\RTemplatenamesForbook or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildRTemplatenamesForbook $rTemplatenamesForbook Object to remove from the list of results
  *
  * @return $this|ChildRTemplatenamesForbookQuery The current query, for fluid interface
  */
 public function prune($rTemplatenamesForbook = null)
 {
     if ($rTemplatenamesForbook) {
         $this->addCond('pruneCond0', $this->getAliasedColName(RTemplatenamesForbookTableMap::COL__TEMPLATEID), $rTemplatenamesForbook->getTemplateid(), Criteria::NOT_EQUAL);
         $this->addCond('pruneCond1', $this->getAliasedColName(RTemplatenamesForbookTableMap::COL__BOOKID), $rTemplatenamesForbook->getBookid(), Criteria::NOT_EQUAL);
         $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
     }
     return $this;
 }