File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -90,14 +90,17 @@ protected function configureContainer(ContainerConfigurator $container): void
90
90
'alias ' => 'App ' ,
91
91
],
92
92
],
93
- 'enable_lazy_ghost_objects ' => true ,
94
93
],
95
94
];
96
95
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
+ }
101
104
}
102
105
103
106
$ container
You can’t perform that action at this time.
0 commit comments