Project

General

Profile

Actions

Task #53146

closed

Hard-coded MM table name in CategoryCollection

Added by Francois Suter about 11 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-10-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
medium
Sprint Focus:

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?

Actions

Also available in: Atom PDF