fix inject
This commit is contained in:
parent
a7460bbce1
commit
c56a5a8c58
|
@ -202,7 +202,7 @@ class Validator
|
||||||
|
|
||||||
foreach ($args as $field) {
|
foreach ($args as $field) {
|
||||||
$method = "set".$this->camelize($field);
|
$method = "set".$this->camelize($field);
|
||||||
if (method_exists($entity, $method)) $entity->$method($this->value($field));
|
if (method_exists($entity, $method)) $entity->$method($this->get($field));
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue