/** * Filter the query by a related \App\Propel\PromotionTypeI18n object * * @param \App\Propel\PromotionTypeI18n|ObjectCollection $promotionTypeI18n the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildPromotionTypeQuery The current query, for fluid interface */ public function filterByPromotionTypeI18n($promotionTypeI18n, $comparison = null) { if ($promotionTypeI18n instanceof \App\Propel\PromotionTypeI18n) { return $this->addUsingAlias(PromotionTypeTableMap::COL_PROMOTION_TYPE_ID, $promotionTypeI18n->getPromotionTypeId(), $comparison); } elseif ($promotionTypeI18n instanceof ObjectCollection) { return $this->usePromotionTypeI18nQuery()->filterByPrimaryKeys($promotionTypeI18n->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByPromotionTypeI18n() only accepts arguments of type \\App\\Propel\\PromotionTypeI18n or Collection'); } }