/** * Filter the query by a related PageString object * * @param PageString|PropelObjectCollection $pageString 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 filterByPageStringRelatedByUpdatedBy($pageString, $comparison = null) { if ($pageString instanceof PageString) { return $this->addUsingAlias(UserPeer::ID, $pageString->getUpdatedBy(), $comparison); } elseif ($pageString instanceof PropelObjectCollection) { return $this->usePageStringRelatedByUpdatedByQuery()->filterByPrimaryKeys($pageString->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByPageStringRelatedByUpdatedBy() only accepts arguments of type PageString or PropelCollection'); } }