Typo3 自己的页面存储库未使用正确的数据库 table(页面)

Typo3 own repository for pages is not using the correct database table (pages)

我们想创建一个模型和存储库来查询 typo3 页面 table。

因此我们创建一个模型 (Dealer) 和一个存储库 (DealerRepository)。我们使用 TS 设置

将映射添加到页面 table

config.tx_extbase.persistence.classes.Tobias\CarApi\Domain\Model\Dealer.mapping.tableName = pages

设置已加载。我可以在TS浏览器中看到它。

不幸的是,findAll() 响应错误,table(自动生成)不存在:

Internal Server Error: Table 'typo3.tx_carapi_domain_model_dealer' doesn't exist

在db中table cf_extbase_datamapfactory_datamap也是错误的table。当我将那里的条目 tableName 更改为 pages 时,它工作得很好。

我按照许多来源描述的那样做了所有事情并清除了缓存和数据库条目,所以有人知道我们缺少什么吗?

错字 3:8.7.9

我总是将这些基本的 TypoScript 设置添加到我的扩展程序中的文件 ext_typoscript_setup.txt 中,然后在其中插入设置:

config.tx_extbase.persistence.classes {
    Tobias\CarApi\Domain\Model\Dealer {
        mapping {
            tableName = pages
        }
    }
}
# for backend and cli API
module.tx_carapi {
    persistence.classes {
        Tobias\CarApi\Domain\Model\Dealer < config.tx_extbase.persistence.classes.Tobias\CarApi\Domain\Model\Dealer
    }
}

这将在任何情况下始终加载。