Doctrine of migration 2 + zend framework 2 = is this possible?

I used this guide http://www.jasongrimes.org/2012/01/using-doctrine-2-in-zend-framework-2/ , and now I have existing Doctrine 2 + ZF2 software.

I am using a version control system and I want to use the Doctrine MIGRATIONS tool to have a database migration system.

If I overlay ./doctrine-module orm:schema-tool:update, it works correctly, but if I use migration tools, for example ./doctrine-module migrations:status, the system will tell me an error:

[Teaching \ DBAL \ Migrations \ MigrationException]
  The migration namespace must be configured to use Doctrine migrations.

What configurations are needed? Does DoctrineOrmModule support Doctrine migration?

I found this for zf1 http://moxune.com/blog/2011/10/configure-doctrine-migrations-2-zend_config/

+5
source share
1 answer

If you check the current Travis CI CLI test for the DoctrineORMModule , you will notice that there is an --configurationindication of the XML configuration, as described in the Doctrine Migration Documentation . Setting this parameter and setting DoctrineORMModule correctly should allow you to use the CLI.

+7
source

All Articles