Example #1
0
 /**
  * Exclude object from result
  *
  * @param   ChildCode $code Object to remove from the list of results
  *
  * @return $this|ChildCodeQuery The current query, for fluid interface
  */
 public function prune($code = null)
 {
     if ($code) {
         $this->addUsingAlias(CodeTableMap::COL_ID, $code->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }