/** * Filter the query by a related LanguageObjectHistory object * * @param LanguageObjectHistory|PropelObjectCollection $languageObjectHistory the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ContentObjectQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByLanguageObjectHistory($languageObjectHistory, $comparison = null) { if ($languageObjectHistory instanceof LanguageObjectHistory) { return $this->addUsingAlias(ContentObjectPeer::ID, $languageObjectHistory->getObjectId(), $comparison); } elseif ($languageObjectHistory instanceof PropelObjectCollection) { return $this->useLanguageObjectHistoryQuery()->filterByPrimaryKeys($languageObjectHistory->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByLanguageObjectHistory() only accepts arguments of type LanguageObjectHistory or PropelCollection'); } }