Skip to content

Commit

Permalink
Remove call to noop method
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Feb 17, 2024
1 parent 1e07023 commit 762b3b8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/Doctrine/EntityManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 0 additions & 1 deletion test/Doctrine/EntityManagerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 762b3b8

Please sign in to comment.