Project

General

Profile

Actions

Feature #105188

open

Extbase DataMapper column UID for external database

Added by Maxime DAL FABBRO 28 days ago. Updated 28 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2024-10-03
Due date:
% Done:

0%

Estimated time:
PHP Version:
8.1
Tags:
Complexity:
easy
Sprint Focus:

Description

If you want to connect to an external database with Extbase Model you have to configure a table mapping between properties and fieldname (Extbase/Persistence/Classes.php).
But, to be able to use Extbase Model your table must have a UID fieldname because in typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php there is a direct reference to UID string name.
A possible solution would be to use the table mapping to map UID property to another fieldname (see attachment patch sample).


Files

Actions

Also available in: Atom PDF