/**
  * @param ChildPhrasebookPhrases $phrasebookPhrases The ChildPhrasebookPhrases object to add.
  */
 protected function doAddPhrasebookPhrases(ChildPhrasebookPhrases $phrasebookPhrases)
 {
     $this->collPhrasebookPhrasess[] = $phrasebookPhrases;
     $phrasebookPhrases->setPhrasebookCategories($this);
 }
 /**
  * Exclude object from result
  *
  * @param   ChildPhrasebookPhrases $phrasebookPhrases Object to remove from the list of results
  *
  * @return $this|ChildPhrasebookPhrasesQuery The current query, for fluid interface
  */
 public function prune($phrasebookPhrases = null)
 {
     if ($phrasebookPhrases) {
         $this->addCond('pruneCond0', $this->getAliasedColName(PhrasebookPhrasesTableMap::COL_ID), $phrasebookPhrases->getId(), Criteria::NOT_EQUAL);
         $this->addCond('pruneCond1', $this->getAliasedColName(PhrasebookPhrasesTableMap::COL_LANG), $phrasebookPhrases->getLang(), Criteria::NOT_EQUAL);
         $this->addCond('pruneCond2', $this->getAliasedColName(PhrasebookPhrasesTableMap::COL_CAT_ID), $phrasebookPhrases->getCatId(), Criteria::NOT_EQUAL);
         $this->combine(array('pruneCond0', 'pruneCond1', 'pruneCond2'), Criteria::LOGICAL_OR);
     }
     return $this;
 }
 /**
  * Filter the query by a related \PhrasebookPhrases object
  *
  * @param \PhrasebookPhrases|ObjectCollection $phrasebookPhrases the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildPhrasebookCategoriesQuery The current query, for fluid interface
  */
 public function filterByPhrasebookPhrases($phrasebookPhrases, $comparison = null)
 {
     if ($phrasebookPhrases instanceof \PhrasebookPhrases) {
         return $this->addUsingAlias(PhrasebookCategoriesTableMap::COL_ID, $phrasebookPhrases->getCatId(), $comparison)->addUsingAlias(PhrasebookCategoriesTableMap::COL_LANG, $phrasebookPhrases->getLang(), $comparison);
     } else {
         throw new PropelException('filterByPhrasebookPhrases() only accepts arguments of type \\PhrasebookPhrases');
     }
 }