I have been using Doctrine and Migrations in my ZF2 project for a few weeks without issue. I have been executing migrations by specifying my own configuration file:
vendor/bin/doctrine-module migrations:diff --configuration=/path/to/migrations-config.xml
I recently brought in Codeception into my project via composer and when I recently went to execute a new migration (with the same above command), I received the following error:
[InvalidArgumentException]
Migrations directory data/DoctrineORMModule/Migrations does not exist
This is not the directory I have specified in my configuration file. At first I thought Doctrine Migrations was completely ignoring my --configuration argument. When I traced it through, I saw that Doctrine Migrations wasn't using my --configuration argument because it had already loaded a config file.
Would anyone know where this config file may be pulling in from? I can work around the issue for the time being by commenting out the conditional in AbstractCommand getMigrationConfiguration(), but long term I'd rather not have to rely on this. I'll also try and remove codeception and see if that has any impact. Any help is appreciated.