/** * Filter the query by a related \Thelia\Model\Import object * * @param \Thelia\Model\Import|ObjectCollection $import 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 filterByImport($import, $comparison = null) { if ($import instanceof \Thelia\Model\Import) { return $this->addUsingAlias(ImportCategoryTableMap::ID, $import->getImportCategoryId(), $comparison); } elseif ($import instanceof ObjectCollection) { return $this->useImportQuery()->filterByPrimaryKeys($import->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByImport() only accepts arguments of type \\Thelia\\Model\\Import or Collection'); } }