Skip to content

Commit 618fcda

Browse files
committed
[Tests] Configure doctrine.orm.enable_native_lazy_objects to fix deprecation in PHP 8.4+
Fix https://github.com/symfony/ux/actions/runs/15787680645/job/44507502967?pr=2712
1 parent ffbb798 commit 618fcda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Fixtures/Kernel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ protected function configureContainer(ContainerConfigurator $c): void
186186
if (version_compare($doctrineBundleVersion, '2.12.0', '>=')) {
187187
$doctrineConfig['orm']['controller_resolver']['auto_mapping'] = false;
188188
}
189+
if (\PHP_VERSION_ID >= 80400 && version_compare($doctrineBundleVersion, '2.15.0', '>=')) {
190+
$doctrineConfig['orm']['enable_native_lazy_objects'] = true;
191+
}
189192
}
190193

191194
$c->extension('doctrine', $doctrineConfig);

0 commit comments

Comments
 (0)