@@ -34,15 +34,15 @@ private function createMakeEntityTest(bool $withDatabase = true): MakerTestDetai
3434 $ config = $ runner ->readYaml ('config/packages/doctrine.yaml ' );
3535
3636 /* @legacy Refactor when annotations are no longer supported. */
37- if (isset ($ config ['doctrine ' ]['orm ' ]['mappings ' ]['App ' ]) && !$ this ->useAttributes ($ runner )) {
38- // Attributes are only supported w/ PHP 8, FrameworkBundle >=5.2,
39- // ORM >=2.9, & DoctrineBundle >=2.4
40- $ runner ->modifyYamlFile ('config/packages/doctrine.yaml ' , function (array $ data ) {
41- $ data ['doctrine ' ]['orm ' ]['mappings ' ]['App ' ]['type ' ] = 'annotation ' ;
42-
43- return $ data ;
44- });
45- }
37+ // if (isset($config['doctrine']['orm']['mappings']['App']) && !$this->useAttributes($runner)) {
38+ // // Attributes are only supported w/ PHP 8, FrameworkBundle >=5.2,
39+ // // ORM >=2.9, & DoctrineBundle >=2.4
40+ // $runner->modifyYamlFile('config/packages/doctrine.yaml', function (array $data) {
41+ // $data['doctrine']['orm']['mappings']['App']['type'] = 'annotation';
42+ //
43+ // return $data;
44+ // });
45+ // }
4646
4747 if ($ withDatabase ) {
4848 $ runner ->configureDatabase ();
@@ -504,7 +504,7 @@ public function getTestDetails(): \Generator
504504 '' ,
505505 ], '' , true /* allow failure */ );
506506
507- $ this ->assertStringContainsString ('Only annotation or attribute mapping is supported ' , $ output );
507+ $ this ->assertStringContainsString ('Only attribute mapping is supported ' , $ output );
508508 }),
509509 ];
510510
@@ -524,7 +524,7 @@ public function getTestDetails(): \Generator
524524 '' ,
525525 ], '' , true /* allow failure */ );
526526
527- $ this ->assertStringContainsString ('Only annotation or attribute mapping is supported ' , $ output );
527+ $ this ->assertStringContainsString ('Only attribute mapping is supported ' , $ output );
528528 }),
529529 ];
530530
0 commit comments