/** * Filter the query by a related \keeko\core\model\LanguageType object * * @param \keeko\core\model\LanguageType|ObjectCollection $languageType 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 ChildLanguageQuery The current query, for fluid interface */ public function filterByType($languageType, $comparison = null) { if ($languageType instanceof \keeko\core\model\LanguageType) { return $this->addUsingAlias(LanguageTableMap::COL_TYPE_ID, $languageType->getId(), $comparison); } elseif ($languageType instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(LanguageTableMap::COL_TYPE_ID, $languageType->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByType() only accepts arguments of type \\keeko\\core\\model\\LanguageType or Collection'); } }