From d80730cf0de4e7e6b9de4d83fde0490c3387cee2 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 19 Mar 2012 08:43:07 -0500 Subject: [PATCH] Removed transaction method from Eloquent model since it is made pointless by DB::transaction. --- laravel/database/eloquent/model.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/laravel/database/eloquent/model.php b/laravel/database/eloquent/model.php index 494a5064..c8522beb 100644 --- a/laravel/database/eloquent/model.php +++ b/laravel/database/eloquent/model.php @@ -157,17 +157,6 @@ abstract class Model { static::$accessible = $attributes; } - /** - * Execute a callback wrapped in a database transaction. - * - * @param Closure $callback - * @return void - */ - public static function transaction($callback) - { - with(new static)->query()->connection()->transaction($callback); - } - /** * Create a new model and store it in the database. *