@@ -223,13 +223,13 @@ protected function _getGetMethod()
223
223
/** @var ParameterReflection $parameterReflection */
224
224
$ parameterReflection = $ methodReflection ->getParameters ()[0 ];
225
225
$ body = "if (! \$id) { \n"
226
- . " throw new " . InputException::class . "('ID required'); \n"
226
+ . " throw new \\ " . InputException::class . "('ID required'); \n"
227
227
. "} \n"
228
228
. "if (!isset( \$this->registry[ \$id])) { \n"
229
229
. " \$entity = \$this-> " . $ this ->_getSourcePersistorPropertyName ()
230
230
. "->loadEntity( \$id); \n"
231
231
. " if (! \$entity->getId()) { \n"
232
- . " throw new " . NoSuchEntityException::class . "('Requested entity doesn \\'t exist'); \n"
232
+ . " throw new \\ " . NoSuchEntityException::class . "('Requested entity doesn \\'t exist'); \n"
233
233
. " } \n"
234
234
. " \$this->registry[ \$id] = \$entity; \n"
235
235
. "} \n"
@@ -257,11 +257,11 @@ protected function _getGetMethod()
257
257
],
258
258
[
259
259
'name ' => 'throws ' ,
260
- 'description ' => InputException::class,
260
+ 'description ' => '\\' . InputException::class,
261
261
],
262
262
[
263
263
'name ' => 'throws ' ,
264
- 'description ' => NoSuchEntityException::class,
264
+ 'description ' => '\\' . NoSuchEntityException::class,
265
265
],
266
266
],
267
267
]
@@ -510,7 +510,7 @@ protected function _getGetListMethod()
510
510
'parameters ' => [
511
511
[
512
512
'name ' => 'searchCriteria ' ,
513
- 'type ' => SearchCriteriaInterface::class,
513
+ 'type ' => '\\' . SearchCriteriaInterface::class,
514
514
],
515
515
],
516
516
'body ' => $ body ,
@@ -519,7 +519,7 @@ protected function _getGetListMethod()
519
519
'tags ' => [
520
520
[
521
521
'name ' => 'param ' ,
522
- 'description ' => SearchCriteriaInterface::class . ' $searchCriteria ' ,
522
+ 'description ' => '\\' . SearchCriteriaInterface::class . ' $searchCriteria ' ,
523
523
],
524
524
[
525
525
'name ' => 'return ' ,
0 commit comments