diff options
Diffstat (limited to 'app/Model/Category.php')
-rw-r--r-- | app/Model/Category.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/app/Model/Category.php b/app/Model/Category.php index 913c3e35..7fed50a3 100644 --- a/app/Model/Category.php +++ b/app/Model/Category.php @@ -98,14 +98,7 @@ class Category extends Base */ public function create(array $values) { - return $this->db->transaction(function($db) use ($values) { - - if (! $db->table(Category::TABLE)->save($values)) { - return false; - } - - return (int) $db->getConnection()->getLastId(); - }); + return $this->persist(self::TABLE, $values); } /** |