diff --git a/ValidatorBundle/Validator.php b/ValidatorBundle/Validator.php index da59fce..b2347ae 100644 --- a/ValidatorBundle/Validator.php +++ b/ValidatorBundle/Validator.php @@ -202,7 +202,7 @@ class Validator foreach ($args as $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;