Skip to content

Commit 0f300bd

Browse files
committed
feat: allow doctrine/doctrine-bundle 3
1 parent d7374e6 commit 0f300bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Functional/GeocoderListenerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ public function process(ContainerBuilder $container): void
7777
$orm['controller_resolver']['auto_mapping'] = false;
7878
$orm['report_fields_where_declared'] = true;
7979
}
80-
if (method_exists(Configuration::class, 'setLazyGhostObjectEnabled') && Kernel::VERSION_ID >= 60100) {
80+
if (method_exists(Configuration::class, 'setLazyGhostObjectEnabled')
81+
&& Kernel::VERSION_ID >= 60100
82+
&& version_compare($doctrineBundleVersion, '2.8.0', '>=')) {
8183
$orm['enable_lazy_ghost_objects'] = true;
8284
}
8385
if (\PHP_VERSION_ID >= 80400

0 commit comments

Comments
 (0)