Task #33745: Integrate File Abstraction Layer
Integrate TCA Relation Service
Currently you need to resolve relations between TCA-tables yourself our use t3lib_loadDBGroup.
The interface for usage of load-db-group is not object-oriented designed, very hard to use, needs external preparation and knowledge about internals for usage.
To ease this up for developers add an "relation-service" for doing this in a more "object-orientated" way, with a single point of action.
In the first step this acts only as a wrapper for t3lib_loadDBgroup but in long term loaddbgroup should be migrated and reworked in a clean way into the the relation-service.
#10 Updated by Steffen Ritter over 8 years ago
there is now a test Extension availabe, which ships unittests and static Data for all relation variants definable via TCA: http://forge.typo3.org/projects/extension-tce_tutorial
#14 Updated by Oliver Hader about 8 years ago
The current implementation of the relation service is bound to table:field and optionally a table or field or any relation to be looked up. I think this is very complex for the basic scope of the service object. Thus, I'd like to suggest the following:
$service = new t3lib_tca_RelationService($table, $field);
$relation = $service->to($relatedTable, $relatedField);
$relatedRecods = $relation->getRecordsFor($record);
$relatedUids = $relation->getUidsFor($record);
So we have: