We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04f8fea commit f4b9628Copy full SHA for f4b9628
tests/Maker/MakeEntityTest.php
@@ -30,8 +30,10 @@ private function createMakeEntityTest(bool $withDatabase = true): MakerTestDetai
30
{
31
return $this->createMakerTest()
32
->preRun(function (MakerTestRunner $runner) use ($withDatabase) {
33
+ $config = $runner->readYaml('config/packages/doctrine.yaml');
34
+
35
/* @legacy Refactor when annotations are no longer supported. */
- if (!$this->useAttributes($runner)) {
36
+ if (isset($config['doctrine']['orm']['mappings']['App']) && !$this->useAttributes($runner)) {
37
// Attributes are only supported w/ PHP 8, FrameworkBundle >=5.2,
38
// ORM >=2.9, & DoctrineBundle >=2.4
39
$runner->modifyYamlFile('config/packages/doctrine.yaml', function (array $data) {
0 commit comments