DigitalState /
Cases
| 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 Loading history...
|
|||
| 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 Loading history...
|
|||
| 8 | |||
| 9 | /** |
||
| 10 | * Class CaseSequenceFixture |
||
| 11 | */ |
||
| 12 | final class CaseSequenceFixture 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_case_id_seq RESTART WITH 1'); |
||
| 25 | $connection->exec('ALTER SEQUENCE app_case_trans_id_seq RESTART WITH 1'); |
||
| 26 | break; |
||
| 27 | } |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public function getOrder() |
||
| 34 | { |
||
| 35 | return -10; |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
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