Skip to content

Commit efdf1e8

Browse files
committed
bugfix
1 parent e5f0e8d commit efdf1e8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Plugins/DocBlock.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public function register($class)
4444
$space = $this->toUnderscore($reflection->getShortName());
4545
if($this->mapper->getSchema()->hasSpace($space)) {
4646
if($isEntity) {
47-
$this->mapEntity($name, $class);
47+
$this->mapEntity($space, $class);
4848
} else {
49-
$this->mapRepository($name, $class);
49+
$this->mapRepository($space, $class);
5050
}
5151
}
5252
return $this;

src/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function getSpace($id)
6363
public function getSpaceId($name)
6464
{
6565
if(!$this->hasSpace($name)) {
66-
throw new Exception("No space $id");
66+
throw new Exception("No space $name");
6767
}
6868
return $this->names[$name];
6969
}
File renamed without changes.

0 commit comments

Comments
 (0)