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