Project

General

Profile

Actions

Bug #94153

closed

Cannot persist file reference using form database finisher

Added by Oliver Hader over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2021-05-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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


Files

94153.png (204 KB) 94153.png Oliver Hader, 2021-05-18 14:13
Actions

Also available in: Atom PDF