From c56a5a8c58e39561aa3fbb351dca5f312f32fc37 Mon Sep 17 00:00:00 2001 From: Maxime Renou Date: Thu, 21 Feb 2019 17:57:43 +0100 Subject: [PATCH] fix inject --- ValidatorBundle/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;