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