From 936376ffe74c583d3cb819e98f53a85137fdf8bc Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 28 May 2016 18:19:15 -0400 Subject: Remove model base class --- app/Model/Subtask.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/Model/Subtask.php') 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( -- cgit v1.2.3