File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,14 @@ protected function configureContainer(ContainerConfigurator $container): void
93
93
],
94
94
];
95
95
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
+ }
100
104
}
101
105
102
106
$ container
You can’t perform that action at this time.
0 commit comments