Merge remote branch 'Brouznouf/patch-1'

* Brouznouf/patch-1:
  [Serializer] Fix bug when denormalize a class in cache
This commit is contained in:
Fabien Potencier 2011-04-27 13:37:49 +02:00
commit 0f5f28c039
1 changed files with 1 additions and 1 deletions

View File

@ -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) {