/**
  * Filter the query by a related \PhrasebookCategories object
  *
  * @param \PhrasebookCategories $phrasebookCategories The related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildPhrasebookPhrasesQuery The current query, for fluid interface
  */
 public function filterByPhrasebookCategories($phrasebookCategories, $comparison = null)
 {
     if ($phrasebookCategories instanceof \PhrasebookCategories) {
         return $this->addUsingAlias(PhrasebookPhrasesTableMap::COL_CAT_ID, $phrasebookCategories->getId(), $comparison)->addUsingAlias(PhrasebookPhrasesTableMap::COL_LANG, $phrasebookCategories->getLang(), $comparison);
     } else {
         throw new PropelException('filterByPhrasebookCategories() only accepts arguments of type \\PhrasebookCategories');
     }
 }
 /**
  * Declares an association between this object and a ChildPhrasebookCategories object.
  *
  * @param  ChildPhrasebookCategories $v
  * @return $this|\PhrasebookPhrases The current object (for fluent API support)
  * @throws PropelException
  */
 public function setPhrasebookCategories(ChildPhrasebookCategories $v = null)
 {
     if ($v === null) {
         $this->setCatId(NULL);
     } else {
         $this->setCatId($v->getId());
     }
     if ($v === null) {
         $this->setLang(NULL);
     } else {
         $this->setLang($v->getLang());
     }
     $this->aPhrasebookCategories = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildPhrasebookCategories object, it will not be re-added.
     if ($v !== null) {
         $v->addPhrasebookPhrases($this);
     }
     return $this;
 }
 /**
  * Exclude object from result
  *
  * @param   ChildPhrasebookCategories $phrasebookCategories Object to remove from the list of results
  *
  * @return $this|ChildPhrasebookCategoriesQuery The current query, for fluid interface
  */
 public function prune($phrasebookCategories = null)
 {
     if ($phrasebookCategories) {
         $this->addCond('pruneCond0', $this->getAliasedColName(PhrasebookCategoriesTableMap::COL_ID), $phrasebookCategories->getId(), Criteria::NOT_EQUAL);
         $this->addCond('pruneCond1', $this->getAliasedColName(PhrasebookCategoriesTableMap::COL_LANG), $phrasebookCategories->getLang(), Criteria::NOT_EQUAL);
         $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
     }
     return $this;
 }