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