Issue Bug Closed

#94153Cannot persist file reference using form database finisher

Oliver Hader 05/18/21, 14:05 updated 09/07/21, 07:34

Description

To “encapsulate” resources that were uploaded using a form element, a new `PseudoFileReference` class was introduced in TYPO3-CORE-SA-2021-002, extending Extbase’s `FileReference` domain model.

When trying to persist those files using Extbase’s `PersistenceManager`, the corresponding database table is assumed to be `tx_form_mvc_property_typeconverter_pseudofilereference` instead of correct `sys_file_reference`.

In order to solve this issue, a corresponding mapping for the new domain model is introduced.

—-

Corresponding Exception

#1470230766 TYPO3\CMS\Extbase\Persistence\Generic\Storage\Exception\SqlErrorException
Table 'db.tx_form_mvc_property_typeconverter_pseudofilereference' doesn't exist

94153.png

Reviews 3