Task #53146
closedHard-coded MM table name in CategoryCollection
0%
Description
There's a conceptual question about class \TYPO3\CMS\Core\Category\Collection\CategoryCollection (and possible also in \TYPO3\CMS\Frontend\Category\Collection\CategoryCollection, if https://review.typo3.org/23905 gets merged).
Going up the inheritance tree, these classes inherit from \TYPO3\CMS\Core\Collection\AbstractRecordCollection which stores in a static variable ($storageTableName
) the name of the table where the collection is defined.
Class \TYPO3\CMS\Core\Category\Collection\CategoryCollection relies on a MM table (sys_category_record_mm
) to store relations to items in the category-based selection. This table name is hard-coded in the getCollectedRecords()
method. Is that correct? Or should it be a (static?) variable like $storageTableName
?