It's possible to define multiple paths, where migrations are stored:
doctrine_migrations.yaml
doctrine_migrations:
    migrations_paths:
        'App\Migrations': '%kernel.project_dir%/src/App'
        'AnotherApp\Migrations': '/path/to/other/migrations'
        'SomeBundle\Migrations': '@SomeBundle/Migrations'
Now I want to use use these paths separately, like this:
$ php bin/console doctrine:migrations:migrate --em=foo --migrations_paths="AnotherApp\Migrations"
But there is no migrations_paths parameter and I also haven't found anything else, that would sound like what I need.
How to pass a single path or a list of paths to doctrine:migrations:migrate?
 
                        
I'm pretty sure you could potentially do this, in the advanced section in their documentation, there's mention of a method to define a file
cli-config.php. So what's stopping you from defining such a file with contents like so:So now you have a place where you can change the
$configbefore passing it further, however, to make this look very clean, we can use the decorator pattern to define our version of the configs like so:Finally our code will look like this: