/** * 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 PageQuery The current query, for fluid interface * @throws PropelException - if the provided filter is invalid. */ public function filterByPageString($pageString, $comparison = null) { if ($pageString instanceof PageString) { return $this->addUsingAlias(PagePeer::ID, $pageString->getPageId(), $comparison); } elseif ($pageString instanceof PropelObjectCollection) { return $this->usePageStringQuery()->filterByPrimaryKeys($pageString->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByPageString() only accepts arguments of type PageString or PropelCollection'); } }