begin(); $object->delete(); $connection->commit(); } else { throw new Exception('This row doesn\'t exist!'); } } catch (Exception $error) { $connection->rollback(); throw $error; } } } // ProcessFiles