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