/** * Exclude object from result * * @param afPortalState $afPortalState Object to remove from the list of results * * @return afPortalStateQuery The current query, for fluid interface */ public function prune($afPortalState = null) { if ($afPortalState) { $this->addUsingAlias(afPortalStatePeer::ID, $afPortalState->getId(), Criteria::NOT_EQUAL); } return $this; }