Skip to content

Commit a6ca2de

Browse files
committed
Use enable_native_lazy_objects
1 parent 89f1bab commit a6ca2de

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/Functional/App/Kernel.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,15 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
4040
$loader->load($this->getProjectDir().'/config/ecommit_crud.yaml');
4141
$loader->load($this->getProjectDir().'/config/services.yaml');
4242

43-
if (5 === static::MAJOR_VERSION) {
43+
if (\PHP_VERSION_ID >= 80400) { // @legacy
44+
$container->loadFromExtension('doctrine', [
45+
'orm' => [
46+
'enable_native_lazy_objects' => true,
47+
],
48+
]);
49+
}
50+
51+
if (5 === static::MAJOR_VERSION) { // @legacy
4452
$container->loadFromExtension('security', [
4553
'enable_authenticator_manager' => true,
4654
]);

0 commit comments

Comments
 (0)