This commit is contained in:
parent
6aed7dd976
commit
0d0b69615a
@ -197,6 +197,7 @@ class Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($required && strlen($value) == 0) {
|
if ($required && strlen($value) == 0) {
|
||||||
|
var_dump($value);
|
||||||
throw new Exception($this->dbTable . "." . $key . " is required but is set to '$value'");
|
throw new Exception($this->dbTable . "." . $key . " is required but is set to '$value'");
|
||||||
}
|
}
|
||||||
if ($value == null)
|
if ($value == null)
|
||||||
|
Reference in New Issue
Block a user