Neos\Flow\Tests\Functional\Persistence\Doctrine\RepositoryTest::findByIdentifierReturnsSubTypesOfTheManagedType PHP Метод

findByIdentifierReturnsSubTypesOfTheManagedType() публичный Метод

    public function findByIdentifierReturnsSubTypesOfTheManagedType()
    {
        $this->superEntityRepository = $this->objectManager->get(Fixtures\SuperEntityRepository::class);
        $subEntity = new Fixtures\SubEntity();
        $subEntity->setContent('this is the sub entity');
        $this->superEntityRepository->add($subEntity);
        $identifier = $this->persistenceManager->getIdentifierByObject($subEntity);
        $this->persistenceManager->persistAll();
        $subEntity = $this->superEntityRepository->findByIdentifier($identifier);
        $this->assertEquals('this is the sub entity', $subEntity->getContent());
    }