diff --git a/src/Doctrine/EntityManagerFactory.php b/src/Doctrine/EntityManagerFactory.php index ac19a4e..e937a76 100644 --- a/src/Doctrine/EntityManagerFactory.php +++ b/src/Doctrine/EntityManagerFactory.php @@ -65,9 +65,6 @@ private function createConfiguration(bool $isDev, string $proxyDir, CacheItemPoo $config->setProxyNamespace('DoctrineProxies'); $config->setAutoGenerateProxyClasses($isDev); - // Changes the "engine" used to build entity proxies, to one where public readonly props can be used - $config->setLazyGhostObjectEnabled(true); - return $config; } diff --git a/test/Doctrine/EntityManagerFactoryTest.php b/test/Doctrine/EntityManagerFactoryTest.php index 2eecea5..34648fe 100644 --- a/test/Doctrine/EntityManagerFactoryTest.php +++ b/test/Doctrine/EntityManagerFactoryTest.php @@ -73,7 +73,6 @@ public function serviceIsCreated( self::assertEquals(__DIR__, $em->getConfiguration()->getProxyDir()); self::assertInstanceOf(SQLiteDriver::class, $em->getConnection()->getDriver()); self::assertEquals($expectedDefaultRepo, $em->getConfiguration()->getDefaultRepositoryClassName()); - self::assertTrue($em->getConfiguration()->isLazyGhostObjectEnabled()); /** @var PHPDriver $metaDriver */ $metaDriver = $em->getConfiguration()->getMetadataDriverImpl();