#68106cf_extbase_datamapfactory_datamap created wrong with sys_categories
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.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.