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