File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ public function register($class)
44
44
$ space = $ this ->toUnderscore ($ reflection ->getShortName ());
45
45
if ($ this ->mapper ->getSchema ()->hasSpace ($ space )) {
46
46
if ($ isEntity ) {
47
- $ this ->mapEntity ($ name , $ class );
47
+ $ this ->mapEntity ($ space , $ class );
48
48
} else {
49
- $ this ->mapRepository ($ name , $ class );
49
+ $ this ->mapRepository ($ space , $ class );
50
50
}
51
51
}
52
52
return $ this ;
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public function getSpace($id)
63
63
public function getSpaceId ($ name )
64
64
{
65
65
if (!$ this ->hasSpace ($ name )) {
66
- throw new Exception ("No space $ id " );
66
+ throw new Exception ("No space $ name " );
67
67
}
68
68
return $ this ->names [$ name ];
69
69
}
File renamed without changes.
You can’t perform that action at this time.
0 commit comments