/**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aPhrasebookCategories) {
         $this->aPhrasebookCategories->removePhrasebookPhrases($this);
     }
     $this->id = null;
     $this->lang = null;
     $this->cat_id = null;
     $this->translation = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * 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');
     }
 }
 /**
  * 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;
 }