/**
  * Exclude object from result
  *
  * @param   ChildImportCategoryI18n $importCategoryI18n Object to remove from the list of results
  *
  * @return ChildImportCategoryI18nQuery The current query, for fluid interface
  */
 public function prune($importCategoryI18n = null)
 {
     if ($importCategoryI18n) {
         $this->addCond('pruneCond0', $this->getAliasedColName(ImportCategoryI18nTableMap::ID), $importCategoryI18n->getId(), Criteria::NOT_EQUAL);
         $this->addCond('pruneCond1', $this->getAliasedColName(ImportCategoryI18nTableMap::LOCALE), $importCategoryI18n->getLocale(), Criteria::NOT_EQUAL);
         $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
     }
     return $this;
 }
示例#2
0
 /**
  * Filter the query by a related \Thelia\Model\ImportCategoryI18n object
  *
  * @param \Thelia\Model\ImportCategoryI18n|ObjectCollection $importCategoryI18n  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildImportCategoryQuery The current query, for fluid interface
  */
 public function filterByImportCategoryI18n($importCategoryI18n, $comparison = null)
 {
     if ($importCategoryI18n instanceof \Thelia\Model\ImportCategoryI18n) {
         return $this->addUsingAlias(ImportCategoryTableMap::ID, $importCategoryI18n->getId(), $comparison);
     } elseif ($importCategoryI18n instanceof ObjectCollection) {
         return $this->useImportCategoryI18nQuery()->filterByPrimaryKeys($importCategoryI18n->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByImportCategoryI18n() only accepts arguments of type \\Thelia\\Model\\ImportCategoryI18n or Collection');
     }
 }