/** * Exclude object from result * * @param ChildUser $user Object to remove from the list of results * * @return ChildUserQuery The current query, for fluid interface */ public function prune($user = null) { if ($user) { $this->addUsingAlias(UserTableMap::ID, $user->getID(), Criteria::NOT_EQUAL); } return $this; }