Actions
Feature #101125
openAbility to convert Domain Models to Array
Start date:
2023-06-20
Due date:
% Done:
0%
Estimated time:
PHP Version:
8.2
Tags:
extbase, domain, model, array
Complexity:
Sprint Focus:
Description
In the same context with this https://forge.typo3.org/issues/101124, it would be very practical if there was a function in the AbstractEntity , which converts the Model to array.
Technology is moving fast, and headless and communication between systems are made mostly with json strings. Currently, one has to create a method in the domain model which return the values as arrays, but this also could be PITA if an extension has 10+ models and relations. Specially now that with TYPO3 12, we have Webhooks and Reactions , which makes the communication between systems very easy.
Solution
Create a method in AbstractEntity which processes everything (FileReferences, Relations) and return everything as an array
Actions