/** * Filter the query by a related \Thelia\Model\ImportI18n object * * @param \Thelia\Model\ImportI18n|ObjectCollection $importI18n the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildImportQuery The current query, for fluid interface */ public function filterByImportI18n($importI18n, $comparison = null) { if ($importI18n instanceof \Thelia\Model\ImportI18n) { return $this->addUsingAlias(ImportTableMap::ID, $importI18n->getId(), $comparison); } elseif ($importI18n instanceof ObjectCollection) { return $this->useImportI18nQuery()->filterByPrimaryKeys($importI18n->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByImportI18n() only accepts arguments of type \\Thelia\\Model\\ImportI18n or Collection'); } }