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