Hey, if you extend your repository from TYPO3\FLOW3\Persistence\Doctrine\Repository, you have $this->entityManager already available which you can use -- and it's also perfectly fine to do such things with Doctrine directly. Greets, Sebastian