Zend Framework 2 Module that provides Doctrine Data-Fixture functionality

0.0.4 2013-12-12 15:42 UTC


Build Status Coverage Status


The DoctrineDataFixtureModule module intends to integrate Doctrine 2 data-fixture with Zend Framework 2 quickly and easily. The following features are intended to work out of the box:

  • Doctrine ORM support
  • Multiple ORM entity managers
  • Multiple DBAL connections
  • Support reuse existing PDO connections in DBAL


This module is designed to work with a typical ZF2 MVC application.


Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.

$ php composer.phar require hounddog/doctrine-data-fixture-module:0.0.*

Then open config/application.config.php and add DoctrineModule, DoctrineORMModule and DoctrineDataFixtureModule to your modules

Registering Fixtures

To register fixtures with Doctrine module add the fixtures in your configuration.

return array(
      'doctrine' => array(
            'fixture' => array(
                  'ModuleName_fixture' => __DIR__ . '/../src/ModuleName/Fixture',


Command Line

Access the Doctrine command line as following


./vendor/bin/doctrine-module data-fixture:import