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