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

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

    public function subTypesOfTheManagedTypeCanBeUpdated()
    {
        $this->superEntityRepository = $this->objectManager->get(Fixtures\SuperEntityRepository::class);
        $subEntity = new Fixtures\SubEntity();
        $subEntity->setContent('this is the sub entity');
        $this->superEntityRepository->add($subEntity);
        $this->persistenceManager->persistAll();
        $subEntity = $this->superEntityRepository->findOneByContent('this is the sub entity');
        $subEntity->setContent('updated sub entity content');
        $this->superEntityRepository->update($subEntity);
        $this->persistenceManager->persistAll();
        $subEntity = $this->superEntityRepository->findOneByContent('updated sub entity content');
        $this->assertNotNull($subEntity);
        $this->assertEquals('updated sub entity content', $subEntity->getContent());
    }