diff --git a/Samurai/Onikiri/EntityTable.php b/Samurai/Onikiri/EntityTable.php
index <HASH>..<HASH> 100644
--- a/Samurai/Onikiri/EntityTable.php
+++ b/Samurai/Onikiri/EntityTable.php
@@ -350,8 +350,8 @@ class EntityTable
         $attributes = array_merge($defaults, $attributes);
 
         $entity = new $class($this, $attributes, $exists);
-        $entity->initialize();
         $entity->setContainer($this->raikiri());
+        $entity->initialize();
 
         return $entity;
     }
call setContainer before initialize