@@ -32,7 +32,8 @@ class EntityManager | |||
public function new($className) | |||
{ | |||
return new $this->getEntityName($className); | |||
$entityName = $this->getEntityName($className); | |||
return new $entityName; | |||
} | |||
public function create(EntityInterface $entity): self |