Remove model base class

This commit is contained in:
Frederic Guillot
2016-05-28 18:19:15 -04:00
parent e6235afb2d
commit 936376ffe7
60 changed files with 113 additions and 53 deletions

View File

@@ -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);