From a56e271025395fc26baad42f27f9794b71962c2b Mon Sep 17 00:00:00 2001 From: Joel Wurtz Date: Wed, 27 Apr 2011 03:24:52 -0700 Subject: [PATCH] [Serializer] Fix bug when denormalize a class in cache --- src/Symfony/Component/Serializer/Serializer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Serializer/Serializer.php b/src/Symfony/Component/Serializer/Serializer.php index d46c1ee36e..badc0d44e3 100644 --- a/src/Symfony/Component/Serializer/Serializer.php +++ b/src/Symfony/Component/Serializer/Serializer.php @@ -80,7 +80,7 @@ class Serializer implements SerializerInterface throw new \LogicException('You must register at least one normalizer to be able to denormalize objects.'); } if (isset($this->normalizerCache[$class][$format])) { - return $this->normalizerCache[$class][$format]->denormalize($data, $format); + return $this->normalizerCache[$class][$format]->denormalize($data, $class, $format); } $reflClass = new \ReflectionClass($class); foreach ($this->normalizers as $normalizer) {