Issue Task Closed

#53146Hard-coded MM table name in CategoryCollection

Francois Suter 10/26/13, 13:33 updated 10/06/14, 09:58

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?

Reviews 0

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