/** * Filter the query by a related \keeko\core\model\LanguageVariant object * * @param \keeko\core\model\LanguageVariant|ObjectCollection $languageVariant The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @throws \Propel\Runtime\Exception\PropelException * * @return ChildLocalizationVariantQuery The current query, for fluid interface */ public function filterByLanguageVariant($languageVariant, $comparison = null) { if ($languageVariant instanceof \keeko\core\model\LanguageVariant) { return $this->addUsingAlias(LocalizationVariantTableMap::COL_VARIANT_ID, $languageVariant->getId(), $comparison); } elseif ($languageVariant instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(LocalizationVariantTableMap::COL_VARIANT_ID, $languageVariant->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByLanguageVariant() only accepts arguments of type \\keeko\\core\\model\\LanguageVariant or Collection'); } }