Download the PHP package rvdlee/doctrine-data-fixture-module without Composer
On this page you can find all versions of the php package rvdlee/doctrine-data-fixture-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rvdlee/doctrine-data-fixture-module
More information about rvdlee/doctrine-data-fixture-module
Files in rvdlee/doctrine-data-fixture-module
Package doctrine-data-fixture-module
Short Description A port for ZF3 of Hounddog's original data-fixture code with the ability to change the executor for fixtures.
License MIT
Homepage http://www.doctrine-project.org/
Informations about the package doctrine-data-fixture-module
DoctrineDataFixture Module for Zend Framework 3
Introduction
This is a port for ZF3 of Hounddog's orignal code to make fixtures supported in the form of a CLI command.
Installation
Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.
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.
Alternativly you can overwrite the executor that fires off the fixtures. I've made an dist file you can follow to make your own. Executors fall in the service category if you need to make a factory for one.
Usage
Command Line
Access the Doctrine command line as following from your project root:
Why use a custom Executor?
I've made fixtures based on entity meta-data or route config for example. A custom executor can provide such information and pass it along to your fixtures.
All versions of doctrine-data-fixture-module with dependencies
doctrine/data-fixtures Version *
doctrine/doctrine-orm-module Version ^3.0
php-coveralls/php-coveralls Version ^2.0
laminas/laminas-dependency-plugin Version ^1.0