I get an error when I try to run doctrine:fixtures:load with the group argument using run() method of the Symfony Console Command class. This way of calling other commands is recommended and described in the documentation of the Symfony Console component.
This is the error:
Argument 1 passed to Doctrine\Bundle\FixturesBundle\Loader\SymfonyFixturesLoader::getFixtures() must be of the type array, string given, called in /vendor/doctrine/doctrine-fixtures-bundle/Command/LoadDataFixturesDoctrineCommand.php on line 109
When I run doctrine:fixtures:load --group=test in the CLI, the group argument is parsed as a single-element array. When I call the command as described by the documentation, the group argument is parsed as a string.
I get an error when I try to run
doctrine:fixtures:load
with thegroup
argument usingrun()
method of the Symfony ConsoleCommand
class. This way of calling other commands is recommended and described in the documentation of the Symfony Console component.This is the error:
Argument 1 passed to Doctrine\Bundle\FixturesBundle\Loader\SymfonyFixturesLoader::getFixtures() must be of the type array, string given, called in /vendor/doctrine/doctrine-fixtures-bundle/Command/LoadDataFixturesDoctrineCommand.php on line 109
When I run
doctrine:fixtures:load --group=test
in the CLI, the group argument is parsed as a single-elementarray
. When I call the command as described by the documentation, the group argument is parsed as astring
.