[TYPO3-dev] Doman Repository for different tables
Bernhard Kraft
kraftb at kraftb.at
Wed Apr 15 18:47:16 CEST 2015
Hi,
In extbase using the "subclasses" configuration key of the persistence
configuration it is possible to have different domain model objects for
the same table depending on the value of a field in the table.
Is it possible to have a single repository for different tables? Or how
would you cope with sys_file and sys_file reference from within an
extbase extension?
I have to retrieve a sys_file_collection and then make a query to a
repository which retrieves the files inside. I do not want to use the
core file collection repository
(TYPO3\CMS\Core\Resource\FileCollectionRepository) because this would
mean the query will not be made using extbase and thus the
<f:widget.paginate> won't work on the files.
But to increase complexity a sys_file_collection can either container
sys_file record (collection type "folder" and "categories") or a
sys_file_reference (collection type "static")
ideas?
greetings,
Bernhard
More information about the TYPO3-dev
mailing list