1 | <?php |
||
2 | |||
3 | namespace App\Fixture; |
||
4 | |||
5 | use Doctrine\Common\DataFixtures\FixtureInterface; |
||
0 ignored issues
–
show
|
|||
6 | use Doctrine\Common\DataFixtures\OrderedFixtureInterface; |
||
0 ignored issues
–
show
The type
Doctrine\Common\DataFixt...OrderedFixtureInterface was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
7 | use Doctrine\Common\Persistence\ObjectManager; |
||
0 ignored issues
–
show
The type
Doctrine\Common\Persistence\ObjectManager was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
8 | |||
9 | /** |
||
10 | * Class SystemSequenceFixture |
||
11 | */ |
||
12 | final class SystemSequenceFixture implements FixtureInterface, OrderedFixtureInterface |
||
13 | { |
||
14 | /** |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | public function load(ObjectManager $manager) |
||
18 | { |
||
19 | $connection = $manager->getConnection(); |
||
20 | $platform = $connection->getDatabasePlatform()->getName(); |
||
21 | |||
22 | switch ($platform) { |
||
23 | case 'postgresql': |
||
24 | $connection->exec('ALTER SEQUENCE app_system_id_seq RESTART WITH 1'); |
||
25 | break; |
||
26 | } |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function getOrder() |
||
33 | { |
||
34 | return -10; |
||
35 | } |
||
36 | } |
||
37 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths