@@ -223,7 +223,7 @@ protected function init(): void
223
223
$ this ->addField ($ this ->fieldName ()->type , ['caption ' => 'MIME Type ' ]);
224
224
$ this ->addField ($ this ->fieldName ()->is_folder , ['type ' => 'boolean ' ]);
225
225
226
- $ this ->hasMany ($ this ->fieldName ()->SubFolder , ['model ' => [self ::class], 'their_field ' => $ this ->fieldName ()->parent_folder_id ])
226
+ $ this ->hasMany ($ this ->fieldName ()->SubFolder , ['model ' => [self ::class], 'their_field ' => self :: hinting () ->fieldName ()->parent_folder_id ])
227
227
->addField ($ this ->fieldName ()->count , ['aggregate ' => 'count ' , 'field ' => $ this ->persistence ->expr ($ this , '* ' )]);
228
228
229
229
$ this ->hasOne ($ this ->fieldName ()->parent_folder_id , ['model ' => [Folder::class]])
@@ -304,8 +304,8 @@ protected function init(): void
304
304
parent ::init ();
305
305
$ this ->addField ($ this ->fieldName ()->name );
306
306
307
- $ this ->hasMany ($ this ->fieldName ()->SubCategories , ['model ' => [SubCategory::class]]);
308
- $ this ->hasMany ($ this ->fieldName ()->Products , ['model ' => [Product::class]]);
307
+ $ this ->hasMany ($ this ->fieldName ()->SubCategories , ['model ' => [SubCategory::class], ' their_field ' => SubCategory:: hinting ()-> fieldName ()-> product_category_id ]);
308
+ $ this ->hasMany ($ this ->fieldName ()->Products , ['model ' => [Product::class], ' their_field ' => Product:: hinting ()-> fieldName ()-> product_category_id ]);
309
309
}
310
310
}
311
311
@@ -325,7 +325,7 @@ protected function init(): void
325
325
$ this ->addField ($ this ->fieldName ()->name );
326
326
327
327
$ this ->hasOne ($ this ->fieldName ()->product_category_id , ['model ' => [Category::class]]);
328
- $ this ->hasMany ($ this ->fieldName ()->Products , ['model ' => [Product::class]]);
328
+ $ this ->hasMany ($ this ->fieldName ()->Products , ['model ' => [Product::class], ' their_field ' => Product:: hinting ()-> fieldName ()-> product_category_id ]);
329
329
}
330
330
}
331
331
0 commit comments