【发布时间】:2016-03-16 15:11:46
【问题描述】:
我尝试通过以下方式为 TYPO3 的前端用户组实例化核心存储库:
$objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
$feGroupRepo = $objectManager->create('\\TYPO3\\CMS\\Extbase\\Domain\\Repository\\FrontendUserGroupRepository');
var_dump($feGroupRepo->findAll()->toArray());
结果我得到了 sql 错误:
#1247602160: Table 'tablename.tx_extbase_domain_model_frontendusergroup' doesn't exist
为什么这个 repo 使用了错误的表?以及如何以正确的方式配置它以使用系统表'fe_groups'?
【问题讨论】: