doctrine / DoctrineFixturesBundle

Symfony integration for the doctrine/data-fixtures library
MIT License
2.44k stars 202 forks source link

Have the ability to chose any executor in LoadDataFixturesDoctrineCommand #364

Open BafS opened 2 years ago

BafS commented 2 years ago

Using LoadDataFixturesDoctrineCommand it's possible to choose which purger we want to run (--purger) but that's unfortunately not the possible with the executor; ORMExecutor is hardcoded in the class (https://github.com/doctrine/DoctrineFixturesBundle/blob/3.4.x/Command/LoadDataFixturesDoctrineCommand.php#L154).

I have my own executor because of this issue (PR still open #209), I need to create a new command too, it would be great to have more flexibility.

And because fields are private I can't extends it, I basically need to copy/paste the command to change this line.

What do you think?