Skip to content

Commit c88c4db

Browse files
committed
Fix undefined ORM option
1 parent 2085245 commit c88c4db

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/Turbo/tests/app/Kernel.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,17 @@ protected function configureContainer(ContainerConfigurator $container): void
9090
'alias' => 'App',
9191
],
9292
],
93-
'enable_lazy_ghost_objects' => true,
9493
],
9594
];
9695

97-
// https://github.com/doctrine/DoctrineBundle/pull/1661
98-
$doctrineBundleVersion = InstalledVersions::getVersion('doctrine/doctrine-bundle');
99-
if (null !== $doctrineBundleVersion && version_compare($doctrineBundleVersion, '2.9.0', '>=')) {
100-
$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+
}
101104
}
102105

103106
$container

0 commit comments

Comments
 (0)