diff --git a/src/Datastore/EntityMapper.php b/src/Datastore/EntityMapper.php
index <HASH>..<HASH> 100644
--- a/src/Datastore/EntityMapper.php
+++ b/src/Datastore/EntityMapper.php
@@ -80,7 +80,7 @@ class EntityMapper
     {
         $excludes = [];
 
-        foreach ($entityData as $property) {
+        foreach ($entityData as $key => $property) {
             $type = key($property);
 
             if (isset($property['excludeFromIndexes']) && $property['excludeFromIndexes']) {
Bugfix for $key is undefined (#<I>)

* Bugfix for $key is undefined



* Make it non-associative array