0
TYPO3 7.6.15のFlexForm UserFuncでfindAllで空の結果が得られました。 storagePidが設定されており、FrontendでfindAllですべての結果を取得しています。ここでTYPO3 7.6.15のFlexForm UserFuncでfindAllを使用した空の結果
は私のUSERFUNC-方法である:
public function getBuldingOptions(&$config)
{
/** @var ObjectManager $om */
$om = GeneralUtility::makeInstance(ObjectManager::class);
/** @var BuildingRepository $repo */
$repo = $om->get(BuildingRepository::class);
$building = $repo->findAll();
DebuggerUtility::var_dump($building, '$building'); // Output: TYPO3\CMS\Extbase\Persistence\Generic\QueryResultprototypeobject (empty)
// add empty value option
$config['items'][] = [LocalizationUtility::translate('BuildingUserFunc.building.emtpyValue', $this->extName), 0];
/** @var Building $entity */
foreach ($building as $entity) {
$config['items'][] = [$entity->getName(), $entity->getUid()];
}
return $config;
}
まだ間違ったことでできますか?誰かアイデア?