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