I just created a custom class that will do more commands. This command will be launched by a robot in the future.
But when I do a
$command_fixtures_load = $this->getApplication()->find('doctrine:fixtures:load');
$arguments_fixtures_load = array(
'command' => 'doctrine:fixtures:load',
'--fixtures' => "src/XXX/XXXBundle/Tests/DataFixtures"
);
$input_fixtures_load = new ArrayInput($arguments_fixtures_load);
$command_fixtures_load->run($input_fixtures_load, $output);
I have this :
Careful, database will be purged. Do you want to continue Y/N ?
So the script waits for an answer, or I would give no answer but it makes the load Fixtures fully automatic.
How?