Skip to content

Commit

Permalink
Reintegrate fixes from Master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiCollin committed Sep 23, 2015
1 parent 9df7ea3 commit 19bc7c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public function toArray()
if(in_array($key, $this->hidden))
{
unset($attributes[$key]);
continue;
}
if($this->hasGetMutator($key))
{
Expand Down
6 changes: 3 additions & 3 deletions src/System/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ public function register($entity, $entityMap = null)
}

$entityMap->setClass($entity);


$entityMap->setManager($this);

$this->entityClasses[$entity] = $entityMap;
}

Expand All @@ -220,8 +222,6 @@ protected function getEntityMapInstanceFor($entity)
$map = $this->getNewEntityMap();
}

$map->setManager($this);

return $map;
}

Expand Down

0 comments on commit 19bc7c4

Please sign in to comment.