From 7749b8ed569f6d27b0bb2ed4c2040e8b61ed4422 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 9 Mar 2014 23:21:23 -0400 Subject: Automatic actions --- models/comment.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'models/comment.php') 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(); -- cgit v1.3.1