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