This module integrates the Doctrine Data Fixtures library. into Zend Framework so that you can load data fixtures programmatically into the Doctrine ORM or ODM.
Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.
$ composer require kenkataiwa/doctrine-fixtures-module
Then open config/application.config.php
and add DoctrineModule
, DoctrineORMModule
and
DoctrineFixturesModule
to your modules
To register fixtures with Doctrine module add the fixtures in your configuration.
<?php
return array(
'doctrine' => array(
'fixtures' => array(
__NAMESPACE__.'_fixture' => __DIR__ . '/../src/'.__NAMESPACE__.'/Fixture',
)
)
);
Access the Doctrine command line as following
./vendor/bin/doctrine-module fixtures:load