summaryrefslogtreecommitdiff
path: root/app/Model/Group.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-28 18:19:15 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-28 18:19:15 -0400
commit936376ffe74c583d3cb819e98f53a85137fdf8bc (patch)
treed4a0fe65d34d21d898bf36818e8c1f4ba1846ffa /app/Model/Group.php
parente6235afb2d17baf31b6f6d67a0a51ac51243b909 (diff)
Remove model base class
Diffstat (limited to 'app/Model/Group.php')
-rw-r--r--app/Model/Group.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Model/Group.php b/app/Model/Group.php
index 24dc432b..25579206 100644
--- a/app/Model/Group.php
+++ b/app/Model/Group.php
@@ -2,6 +2,8 @@
namespace Kanboard\Model;
+use Kanboard\Core\Base;
+
/**
* Group Model
*
@@ -97,7 +99,7 @@ class Group extends Base
*/
public function create($name, $external_id = '')
{
- return $this->persist(self::TABLE, array(
+ return $this->db->table(self::TABLE)->persist(array(
'name' => $name,
'external_id' => $external_id,
));