Esempio n. 1
0
 /**
  * Filter the query by a related \RTemplatenamesInchapter object
  *
  * @param \RTemplatenamesInchapter|ObjectCollection $rTemplatenamesInchapter the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildFormatsQuery The current query, for fluid interface
  */
 public function filterByRTemplatenamesInchapter($rTemplatenamesInchapter, $comparison = null)
 {
     if ($rTemplatenamesInchapter instanceof \RTemplatenamesInchapter) {
         return $this->addUsingAlias(FormatsTableMap::COL_ID, $rTemplatenamesInchapter->getChapterid(), $comparison);
     } elseif ($rTemplatenamesInchapter instanceof ObjectCollection) {
         return $this->useRTemplatenamesInchapterQuery()->filterByPrimaryKeys($rTemplatenamesInchapter->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByRTemplatenamesInchapter() only accepts arguments of type \\RTemplatenamesInchapter or Collection');
     }
 }
 /**
  * Exclude object from result
  *
  * @param   ChildRTemplatenamesInchapter $rTemplatenamesInchapter Object to remove from the list of results
  *
  * @return $this|ChildRTemplatenamesInchapterQuery The current query, for fluid interface
  */
 public function prune($rTemplatenamesInchapter = null)
 {
     if ($rTemplatenamesInchapter) {
         $this->addCond('pruneCond0', $this->getAliasedColName(RTemplatenamesInchapterTableMap::COL__TEMPLATEID), $rTemplatenamesInchapter->getTemplateid(), Criteria::NOT_EQUAL);
         $this->addCond('pruneCond1', $this->getAliasedColName(RTemplatenamesInchapterTableMap::COL__CHAPTERID), $rTemplatenamesInchapter->getChapterid(), Criteria::NOT_EQUAL);
         $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
     }
     return $this;
 }