Better structure error
This commit is contained in:
parent
7f0f533982
commit
5d8661fd27
1 changed files with 6 additions and 2 deletions
|
@ -187,8 +187,12 @@ class Structure extends Validator
|
|||
|
||||
if (empty($validator)) { // Error creating validator for property
|
||||
$this->message = 'Unknown rule type "' . $ruleType . '" for property "' . htmlspecialchars($key, ENT_QUOTES, 'UTF-8') . '"';
|
||||
// $this->message = 'Unknown property "'.$key.'" type'.
|
||||
// '. Make sure to follow '.strtolower($collection->getAttribute('name', 'unknown')).' collection structure';
|
||||
|
||||
if(empty($ruleType)) {
|
||||
$this->message = 'Unknown property "'.$key.'" type'.
|
||||
'. Make sure to follow '.strtolower($collection->getAttribute('name', 'unknown')).' collection structure';
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue