Skip to content

Commit 09dc6eb

Browse files
smnandreweaverryan
authored andcommitted
[CI][Turbo] Fix direct deprecation notice
1 parent bfc6d08 commit 09dc6eb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/Turbo/tests/app/Kernel.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,14 @@ protected function configureContainer(ContainerConfigurator $container): void
9393
],
9494
];
9595

96-
// https://github.com/doctrine/DoctrineBundle/pull/1661
97-
$doctrineBundleVersion = InstalledVersions::getVersion('doctrine/doctrine-bundle');
98-
if (null !== $doctrineBundleVersion && version_compare($doctrineBundleVersion, '2.9.0', '>=')) {
99-
$doctrineConfig['orm']['report_fields_where_declared'] = true;
96+
if (null !== $doctrineBundleVersion = InstalledVersions::getVersion('doctrine/doctrine-bundle')) {
97+
if (version_compare($doctrineBundleVersion, '2.8.0', '>=')) {
98+
$doctrineConfig['orm']['enable_lazy_ghost_objects'] = true;
99+
}
100+
// https://github.com/doctrine/DoctrineBundle/pull/1661
101+
if (version_compare($doctrineBundleVersion, '2.9.0', '>=')) {
102+
$doctrineConfig['orm']['report_fields_where_declared'] = true;
103+
}
100104
}
101105

102106
$container

0 commit comments

Comments
 (0)