diff --git a/lib/Doctrine/ODM/PHPCR/Proxy/ProxyFactory.php b/lib/Doctrine/ODM/PHPCR/Proxy/ProxyFactory.php
index <HASH>..<HASH> 100644
--- a/lib/Doctrine/ODM/PHPCR/Proxy/ProxyFactory.php
+++ b/lib/Doctrine/ODM/PHPCR/Proxy/ProxyFactory.php
@@ -208,6 +208,8 @@ class ProxyFactory
             $attributes[] = $field["fieldName"];
         }
 
+        $attributes[] = $class->identifier;
+
         return $attributes;
     }
fix handling of identifier when handling class properties in proxies