@@ -34,15 +34,15 @@ private function createMakeEntityTest(bool $withDatabase = true): MakerTestDetai
34
34
$ config = $ runner ->readYaml ('config/packages/doctrine.yaml ' );
35
35
36
36
/* @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
+ // }
46
46
47
47
if ($ withDatabase ) {
48
48
$ runner ->configureDatabase ();
@@ -504,7 +504,7 @@ public function getTestDetails(): \Generator
504
504
'' ,
505
505
], '' , true /* allow failure */ );
506
506
507
- $ this ->assertStringContainsString ('Only annotation or attribute mapping is supported ' , $ output );
507
+ $ this ->assertStringContainsString ('Only attribute mapping is supported ' , $ output );
508
508
}),
509
509
];
510
510
@@ -524,7 +524,7 @@ public function getTestDetails(): \Generator
524
524
'' ,
525
525
], '' , true /* allow failure */ );
526
526
527
- $ this ->assertStringContainsString ('Only annotation or attribute mapping is supported ' , $ output );
527
+ $ this ->assertStringContainsString ('Only attribute mapping is supported ' , $ output );
528
528
}),
529
529
];
530
530
0 commit comments