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)
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 ;
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments