Skip to content

Commit f4b9628

Browse files
committed
not that simple
1 parent 04f8fea commit f4b9628

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Maker/MakeEntityTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ private function createMakeEntityTest(bool $withDatabase = true): MakerTestDetai
3030
{
3131
return $this->createMakerTest()
3232
->preRun(function (MakerTestRunner $runner) use ($withDatabase) {
33+
$config = $runner->readYaml('config/packages/doctrine.yaml');
34+
3335
/* @legacy Refactor when annotations are no longer supported. */
34-
if (!$this->useAttributes($runner)) {
36+
if (isset($config['doctrine']['orm']['mappings']['App']) && !$this->useAttributes($runner)) {
3537
// Attributes are only supported w/ PHP 8, FrameworkBundle >=5.2,
3638
// ORM >=2.9, & DoctrineBundle >=2.4
3739
$runner->modifyYamlFile('config/packages/doctrine.yaml', function (array $data) {

0 commit comments

Comments
 (0)