summaryrefslogtreecommitdiff
path: root/app/Validator/ProjectValidator.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Validator/ProjectValidator.php')
-rw-r--r--app/Validator/ProjectValidator.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Validator/ProjectValidator.php b/app/Validator/ProjectValidator.php
index 1c6c90f8..9ef59111 100644
--- a/app/Validator/ProjectValidator.php
+++ b/app/Validator/ProjectValidator.php
@@ -4,15 +4,15 @@ namespace Kanboard\Validator;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
-use Kanboard\Model\Project;
+use Kanboard\Model\ProjectModel;
/**
* Project Validator
*
- * @package validator
+ * @package Kanboard\Validator
* @author Frederic Guillot
*/
-class ProjectValidator extends Base
+class ProjectValidator extends BaseValidator
{
/**
* Common validation rules
@@ -34,7 +34,7 @@ class ProjectValidator extends Base
new Validators\MaxLength('start_date', t('The maximum length is %d characters', 10), 10),
new Validators\MaxLength('end_date', t('The maximum length is %d characters', 10), 10),
new Validators\AlphaNumeric('identifier', t('This value must be alphanumeric')) ,
- new Validators\Unique('identifier', t('The identifier must be unique'), $this->db->getConnection(), Project::TABLE),
+ new Validators\Unique('identifier', t('The identifier must be unique'), $this->db->getConnection(), ProjectModel::TABLE),
);
}