fix inject

This commit is contained in:
Maxime Renou 2019-02-21 17:57:43 +01:00
parent a7460bbce1
commit c56a5a8c58
1 changed files with 1 additions and 1 deletions

View File

@ -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;