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