summaryrefslogtreecommitdiff
path: root/models/comment.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fguillot@users.noreply.github.com>2014-03-09 23:21:23 -0400
committerFrédéric Guillot <fguillot@users.noreply.github.com>2014-03-09 23:21:23 -0400
commit7749b8ed569f6d27b0bb2ed4c2040e8b61ed4422 (patch)
treeee101992e87d740bdf0362e35ea040c866986f5a /models/comment.php
parent7bd4697dfca41a21f5857f83d6b29108fafb9a1e (diff)
Automatic actions
Diffstat (limited to 'models/comment.php')
-rw-r--r--models/comment.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/models/comment.php b/models/comment.php
index 9e5cf8fd..c476e693 100644
--- a/models/comment.php
+++ b/models/comment.php
@@ -2,6 +2,8 @@
namespace Model;
+require_once __DIR__.'/base.php';
+
use \SimpleValidator\Validator;
use \SimpleValidator\Validators;
@@ -17,9 +19,9 @@ class Comment extends Base
self::TABLE.'.id',
self::TABLE.'.date',
self::TABLE.'.comment',
- \Model\User::TABLE.'.username'
+ User::TABLE.'.username'
)
- ->join(\Model\User::TABLE, 'id', 'user_id')
+ ->join(User::TABLE, 'id', 'user_id')
->orderBy(self::TABLE.'.date', 'ASC')
->eq(self::TABLE.'.task_id', $task_id)
->findAll();