Issue Story Closed

#84915Provide generic entity schema definition

Oliver Hader 05/03/18, 14:19 updated 07/15/24, 20:53

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.