Inheritance: extends Neos\Flow\Persistence\Doctrine\Repository
 /**
  * @test
  */
 public function inOperatorWorksWithGlobalObjectAccess()
 {
     $cacheManager = $this->objectManager->get(CacheManager::class);
     $cacheManager->getCache('Flow_Persistence_Doctrine')->flush();
     $testEntityD1 = new Fixtures\TestEntityD();
     $testEntityD2 = new Fixtures\TestEntityD();
     $this->testEntityDDoctrineRepository->add($testEntityD1);
     $this->testEntityDDoctrineRepository->add($testEntityD2);
     $this->globalObjectTestContext->setSecurityFixturesEntityDCollection([$testEntityD1, $testEntityD2]);
     $testEntityC = new Fixtures\TestEntityC();
     $testEntityC->setSimpleStringProperty('Basti');
     $testEntityC->setRelatedEntityD($testEntityD2);
     $this->testEntityCDoctrineRepository->add($testEntityC);
     $testEntityCIdentifier = $this->persistenceManager->getIdentifierByObject($testEntityC);
     $this->persistenceManager->persistAll();
     $this->persistenceManager->clearState();
     $result = $this->testEntityCDoctrineRepository->findAllWithDql();
     $this->assertTrue(count($result) === 0);
     $this->assertNull($this->persistenceManager->getObjectByIdentifier($testEntityCIdentifier, Fixtures\TestEntityC::class));
     $this->restrictableEntityDoctrineRepository->removeAll();
     $this->persistenceManager->persistAll();
     $this->persistenceManager->clearState();
 }