Story #84915

Epic #83932: Initiative: Datahandler & Persistence

Epic #84914: Streamline entity configuration layer

Provide generic entity schema definition

Added by Oliver Hader over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-05-03
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
Tags:
Sprint Focus:

Description

Expected goal

$factory = new TcaSchemaDefinitionFactory($GLOBALS['TCA']);
$schemaDefinition = $factory->buildForTable('tt_content');
$service = new SchemaDefinitionService();
$mediaProperty = $schemaDefinition->getProperty('media');
$service->isRelational(mediaProperty);
if ($service->getRelationType($mediaProperty) === Relation::TYPE_ONE_TO_MANY_COMPOSITION)) { ... }

The API above can still change. Besides that Extbase DataMapFactory could be considered as foundation as well.

Also available in: Atom PDF