diff --git a/src/Storage/Repository.php b/src/Storage/Repository.php
index <HASH>..<HASH> 100644
--- a/src/Storage/Repository.php
+++ b/src/Storage/Repository.php
@@ -35,7 +35,7 @@ class Repository implements ObjectRepository
         }
         
         if (null === $hydrator) {
-            $this->setHydrator(new Hydrator($classMetadata->getName()));
+            $this->setHydrator(new Hydrator($classMetadata));
         }
         
         if (null === $persister) {
pass in the entire class to the hydrator constructor