Skip to content

Commit

Permalink
Fix entity namespace
Browse files Browse the repository at this point in the history
set entity when I will get the mapper
  • Loading branch information
williamespindola committed Aug 25, 2015
1 parent 25f13a1 commit ebd6827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Storage/ORM/RespectRelational.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class RespectRelational implements StorageORMInterface
public function __construct(Mapper $mapper)
{
$this->setMapper($mapper);
$this->setEntityNamespace('\\WilliamEspindola\\Field\\Entity\\');
}

/**
Expand Down Expand Up @@ -91,6 +90,7 @@ public function findOne($tableName, array $criteria)
*/
public function getMapper()
{
$this->setEntityNamespace('\\WilliamEspindola\\Field\\Entity\\');
return $this->mapper;
}

Expand All @@ -113,4 +113,4 @@ public function flush()
{
return $this->getMapper()->flush();
}
}
}

0 comments on commit ebd6827

Please sign in to comment.