Skip to content
Snippets Groups Projects
Commit f0f8ab76 authored by Oliver Hader's avatar Oliver Hader Committed by Georg Ringer
Browse files

[BUGFIX] Allow persisting PseudoFileReference via database form finisher

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 (inferred from class)
`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.

Resolves: #94153
Releases: master, 10.4, 9.5
Change-Id: I8325a5c78e1e2e37ff75711a10725be796c22d9d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69176


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent d978d4e4
Branches
Tags
No related merge requests found
<?php
declare(strict_types=1);
return [
\TYPO3\CMS\Form\Mvc\Property\TypeConverter\PseudoFileReference::class => [
'tableName' => 'sys_file_reference',
],
];
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment