diff --git a/src/Storage/ORM/RespectRelational.php b/src/Storage/ORM/RespectRelational.php index c81244d..4a7db8f 100644 --- a/src/Storage/ORM/RespectRelational.php +++ b/src/Storage/ORM/RespectRelational.php @@ -25,7 +25,6 @@ class RespectRelational implements StorageORMInterface public function __construct(Mapper $mapper) { $this->setMapper($mapper); - $this->setEntityNamespace('\\WilliamEspindola\\Field\\Entity\\'); } /** @@ -91,6 +90,7 @@ public function findOne($tableName, array $criteria) */ public function getMapper() { + $this->setEntityNamespace('\\WilliamEspindola\\Field\\Entity\\'); return $this->mapper; } @@ -113,4 +113,4 @@ public function flush() { return $this->getMapper()->flush(); } -} \ No newline at end of file +}