我是Extbase的新手,我的心态仍然是数据库驱动的 . 我创建了一个扩展并添加了一个调度程序任务 . 现在我想使用调度程序任务来更新关系 .

记录在\ Vendor \ Extension \ Domain \ Repository \ OriginalRepository中有UID 1我想将setIdendify设置为\ Vendor \ Extension \ Domain \ Model \ Identify

我已经做的是,我已经创建了这样的新识别对象:

$objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
$repository = $objectManager->get('Vendor\\Extension\\Domain\\Repository\\IdentifyRepository');

$new = new \Vendor\Extension\Domain\Model\Identify;
$new->setName('test');

$repository->add($new);

但是如何将此添加到\ Vendor \ Extension \ Domain \ Repository \ OriginalRepository?

非常感谢您的帮助 .