summaryrefslogtreecommitdiff
path: root/app/Model/Comment.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/Comment.php
parente6235afb2d17baf31b6f6d67a0a51ac51243b909 (diff)
Remove model base class
Diffstat (limited to 'app/Model/Comment.php')
-rw-r--r--app/Model/Comment.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Model/Comment.php b/app/Model/Comment.php
index c5091d89..7d3e1d6e 100644
--- a/app/Model/Comment.php
+++ b/app/Model/Comment.php
@@ -4,6 +4,8 @@ namespace Kanboard\Model;
use Kanboard\Event\CommentEvent;
+use Kanboard\Core\Base;
+
/**
* Comment model
*
@@ -110,7 +112,7 @@ class Comment extends Base
public function create(array $values)
{
$values['date_creation'] = time();
- $comment_id = $this->persist(self::TABLE, $values);
+ $comment_id = $this->db->table(self::TABLE)->persist($values);
if ($comment_id) {
$event = new CommentEvent(array('id' => $comment_id) + $values);