public static function deleteCar($carID = 0) { try { if ($carID <= 0) { throw new Exception\ArgumentNullException('carID'); } } catch (Exception\ArgumentNullException $e) { $e->showException(); return false; } $query = new Query("delete"); $query->setDeleteParams($carID, null, MyCarTable::getTableName(), MyCarTable::getMapArray(), MyCarTable::getTableLinks()); $res = $query->exec(); if ($ar_res = $res->fetch()) { return $ar_res; } else { return false; } }