hounddog / doctrine-data-fixture-module
Zend Framework 2 Module that provides Doctrine Data-Fixture functionality
Installs: 327 420
Dependents: 17
Suggesters: 0
Security: 0
Stars: 37
Watchers: 9
Forks: 71
Open Issues: 12
Requires
- php: >=5.3.3
- doctrine/data-fixtures: 1.0.*
- doctrine/doctrine-orm-module: ~0.7
- zendframework/zend-eventmanager: 2.*
- zendframework/zend-modulemanager: 2.*
- zendframework/zend-servicemanager: 2.*
Requires (Dev)
- phpunit/phpunit: 3.7.*
- satooshi/php-coveralls: >=0.6.0
- squizlabs/php_codesniffer: 1.4.*
This package is not auto-updated.
Last update: 2024-11-23 13:10:25 UTC
README
Introduction
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
Requirements
This module is designed to work with a typical ZF2 MVC application.
Installation
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.
<?php return array( 'doctrine' => array( 'fixture' => array( 'ModuleName_fixture' => __DIR__ . '/../src/ModuleName/Fixture', ) ) );
Usage
Command Line
Access the Doctrine command line as following
##Import
./vendor/bin/doctrine-module data-fixture:import