File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -87,16 +87,19 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
8787 ],
8888 'orm ' => [
8989 'auto_generate_proxy_classes ' => true ,
90+ 'controller_resolver ' => ['auto_mapping ' => false ], // @see https://github.com/doctrine/DoctrineBundle/pull/1762
91+ 'enable_lazy_ghost_objects ' => true , // @see https://github.com/doctrine/DoctrineBundle/pull/1733
9092 'auto_mapping ' => true ,
9193 'mappings ' => [
9294 'App ' => [
9395 'is_bundle ' => false ,
94- 'type ' => self :: shouldUseAttributes () ? 'attribute ' : ' annotation ' ,
96+ 'type ' => 'attribute ' ,
9597 'dir ' => 'tests/Fixtures/Entity/ ' ,
9698 'prefix ' => 'SymfonyCasts\Bundle\ResetPassword\Tests\Fixtures\Entity ' ,
9799 'alias ' => 'App ' ,
98100 ],
99101 ],
102+ 'report_fields_where_declared ' => true , // @see https://github.com/doctrine/DoctrineBundle/pull/1661
100103 ],
101104 ]);
102105
@@ -141,9 +144,4 @@ public function getLogDir(): string
141144 {
142145 return sys_get_temp_dir ().'/logs ' .spl_object_hash ($ this );
143146 }
144-
145- public static function shouldUseAttributes (): bool
146- {
147- return Kernel::VERSION_ID >= 70000 ;
148- }
149147}
You can’t perform that action at this time.
0 commit comments