Update on Scheduler Task in Extbase 6.2

256 views Asked by At

I am new to Extbase and my mindset is still database driven. I've created a extension and added a scheduler task. Now I want to use the scheduler task to update a relation.

The record has UID 1 in \Vendor\Extension\Domain\Repository\OriginalRepository And I want to setIdendify to \Vendor\Extension\Domain\Model\Identify

What I already did is, I've create the new Identify Object like this:

$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);

But how can add this now to \Vendor\Extension\Domain\Repository\OriginalRepository?

Your help is really appreciated.

0

There are 0 answers