From ebd68279a6d9de9957733340be2b450c8f54b5c4 Mon Sep 17 00:00:00 2001 From: William Espindola Date: Tue, 25 Aug 2015 01:57:51 -0300 Subject: [PATCH] Fix entity namespace set entity when I will get the mapper --- src/Storage/ORM/RespectRelational.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}