@@ -3261,7 +3261,7 @@ public function __construct(Router $router, Responder $responder, array $propert
3261
3261
$ this ->utils = new RequestUtils ($ reflection );
3262
3262
}
3263
3263
3264
- private function callHandler ($ handler , $ record , String $ operation , ReflectedTable $ table ) /*: object */
3264
+ private function callHandler ($ record , String $ operation , ReflectedTable $ table ) /*: object */
3265
3265
{
3266
3266
$ context = (array ) $ record ;
3267
3267
$ columnName = $ this ->getProperty ('column ' , '' );
@@ -3283,18 +3283,15 @@ public function handle(Request $request): Response
3283
3283
if ($ this ->reflection ->hasTable ($ tableName )) {
3284
3284
$ record = $ request ->getBody ();
3285
3285
if ($ record !== null ) {
3286
- $ handler = $ this ->getProperty ('handler ' , '' );
3287
- if ($ handler !== '' ) {
3288
- $ table = $ this ->reflection ->getTable ($ tableName );
3289
- if (is_array ($ record )) {
3290
- foreach ($ record as &$ r ) {
3291
- $ r = $ this ->callHandler ($ handler , $ r , $ operation , $ table );
3292
- }
3293
- } else {
3294
- $ record = $ this ->callHandler ($ handler , $ record , $ operation , $ table );
3286
+ $ table = $ this ->reflection ->getTable ($ tableName );
3287
+ if (is_array ($ record )) {
3288
+ foreach ($ record as &$ r ) {
3289
+ $ r = $ this ->callHandler ($ r , $ operation , $ table );
3295
3290
}
3296
- $ request ->setBody ($ record );
3291
+ } else {
3292
+ $ record = $ this ->callHandler ($ record , $ operation , $ table );
3297
3293
}
3294
+ $ request ->setBody ($ record );
3298
3295
}
3299
3296
}
3300
3297
}
0 commit comments