예제 #1
0
파일: NewsQuery.php 프로젝트: nirkbirk/site
 /**
  * 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;
 }