Project

General

Profile

Actions

Bug #68106

closed

cf_extbase_datamapfactory_datamap created wrong with sys_categories

Added by Jeff C about 9 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-07-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

In my controller I create a constraint for my query that looks like this:

$constraints[] = $query->contains('course.categories', $category);

The property "categories" of my model "course" is created in ext_tables.php via \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable. When I try to filter the results in the frontend I get the following error message:

Unsupported or non-existing property name "categories" used in relation matching.

After manually clearing the table cf_extbase_datamapfactory_datamap it works until the table is created again. I think this is due to a wrong behaviour which creates the table before the full TCA for the model is loaded including the sys_categories. After manually adding the configuration for sys_categories in the column section of the model's TCA the table is created correct every time.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #62853: Caching datamaps within eID-requests results in incomplete cache entriesRejected2014-11-11

Actions
Related to TYPO3 Core - Feature #62742: TCA schould always be loaded earlyRejected2014-11-06

Actions
Actions

Also available in: Atom PDF