Bug #90373
closedPersisting FileReference in Extbase leads to empty 'table_local' field in sys_file_reference
0%
Description
Persisting a new TYPO3\CMS\Extbase\Domain\Model\FileReference in an Extbase Model does not set the value 'sys_file' in the sys_file_reference record.
In the backend this has the effect that the reference is not recognized as file. An editor does not see the original image for example when opening the info-view to the reference. When the field 'table_local' is empty, the info-view shows a 'file reference' and does not show the original image and information to it, it only shows information about the reference itself. When the field 'table_local' contains the value 'sys_file' as it should, the editor sees information to the orignial file.
I don't know how the model is handled internally when persisting, as there is no field uidForeign in the model (and also not in one of it's ancestor classes), and also no field tableLocal, i guess some magic is done do it on persisting.
However, the field 'table_local' must contain a value after persisting.
Files