Skip to content

Commit 547d85e

Browse files
committed
phpcs doctrine-data-fixtures
1 parent 6a10420 commit 547d85e

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

config/doctrine-data-fixtures.php

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
declare(strict_types=1);
4+
5+
use Doctrine\Common\DataFixtures\Executor\ORMExecutor;
6+
use Doctrine\Common\DataFixtures\Purger\ORMPurger;
7+
38
/**
49
* In the default values listed below, ORM fixtures are configured. You may
510
* configure other Doctrine fixture group types:
@@ -8,19 +13,19 @@
813
* ORMPurger | PHPCRPurger | MongoDBPurger
914
*/
1015

16+
// The order of fixtures in the fixtures array is not the order in which
17+
// they will be executed. See
18+
// https://github.com/doctrine/data-fixtures#fixture-ordering
19+
/**
20+
Fixture1::class,
21+
Fixture2::class,
22+
*/
23+
1124
return [
1225
'default' => [ // Group name
1326
'objectManager' => 'Doctrine\ORM\EntityManager',
14-
'executor' => \Doctrine\Common\DataFixtures\Executor\ORMExecutor::class,
15-
'purger' => \Doctrine\Common\DataFixtures\Purger\ORMPurger::class,
16-
'fixtures' => [
17-
// The order of fixtures in this list is not the order in which
18-
// they will be executed. See
19-
// https://github.com/doctrine/data-fixtures#fixture-ordering
20-
/**
21-
Fixture1::class,
22-
Fixture2::class,
23-
*/
24-
],
27+
'executor' => ORMExecutor::class,
28+
'purger' => ORMPurger::class,
29+
'fixtures' => [],
2530
],
2631
];

0 commit comments

Comments
 (0)