summaryrefslogtreecommitdiff
path: root/app/Model/Subtask.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/Subtask.php
parente6235afb2d17baf31b6f6d67a0a51ac51243b909 (diff)
Remove model base class
Diffstat (limited to 'app/Model/Subtask.php')
-rw-r--r--app/Model/Subtask.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Model/Subtask.php b/app/Model/Subtask.php
index e56796a0..1d53d6de 100644
--- a/app/Model/Subtask.php
+++ b/app/Model/Subtask.php
@@ -3,6 +3,7 @@
namespace Kanboard\Model;
use PicoDb\Database;
+use Kanboard\Core\Base;
use Kanboard\Event\SubtaskEvent;
/**
@@ -215,7 +216,7 @@ class Subtask extends Base
public function create(array $values)
{
$this->prepareCreation($values);
- $subtask_id = $this->persist(self::TABLE, $values);
+ $subtask_id = $this->db->table(self::TABLE)->persist($values);
if ($subtask_id) {
$this->container['dispatcher']->dispatch(