/** * Filter the query by a related \App\Propel\FileType object * * @param \App\Propel\FileType|ObjectCollection $fileType 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 ChildFileTypeI18nQuery The current query, for fluid interface */ public function filterByFileType($fileType, $comparison = null) { if ($fileType instanceof \App\Propel\FileType) { return $this->addUsingAlias(FileTypeI18nTableMap::COL_FILE_TYPE_ID, $fileType->getFileTypeId(), $comparison); } elseif ($fileType instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(FileTypeI18nTableMap::COL_FILE_TYPE_ID, $fileType->toKeyValue('PrimaryKey', 'FileTypeId'), $comparison); } else { throw new PropelException('filterByFileType() only accepts arguments of type \\App\\Propel\\FileType or Collection'); } }