From 79bbc9f6890ed969a001399a89c403bcd96aa052 Mon Sep 17 00:00:00 2001 From: prolic Date: Tue, 29 May 2012 15:36:24 +0200 Subject: [PATCH] fix in Hydrator\ArraySerializable --- src/Hydrator/ArraySerializable.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Hydrator/ArraySerializable.php b/src/Hydrator/ArraySerializable.php index d5623522a..da5ed9c61 100644 --- a/src/Hydrator/ArraySerializable.php +++ b/src/Hydrator/ArraySerializable.php @@ -67,10 +67,8 @@ public function hydrate(array $data, $object) { if (is_callable(array($object, 'exchangeArray'))) { $object->exchangeArray($data); - return; } else if (is_callable(array($object, 'populate'))) { $object->populate($data); - return; } else { throw new Exception\BadMethodCallException(sprintf( '%s expects the provided object to implement exchangeArray() or populate()',