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