kenkataiwa / doctrine-fixtures-module
Zend Framework Doctrine Fixtures Module
Installs: 1 230
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 1
Requires
- php: ^5.6 || ^7.0
- doctrine/data-fixtures: ^1
- doctrine/doctrine-module: >=1.2
- doctrine/doctrine-orm-module: >=1
- symfony/console: ^2.3 || ^3.0
- zendframework/zend-hydrator: ^1.1 || ^2.2.1
- zendframework/zend-mvc: ^2.7.10 || ^3.0.1
- zendframework/zend-servicemanager: ^2.7.6 || ^3.1
- zendframework/zend-stdlib: ^2.7.7 || ^3.0.1
Requires (Dev)
- doctrine/doctrine-fixtures-bundle: dev-master
This package is not auto-updated.
Last update: 2023-05-12 10:51:46 UTC
README
Introduction
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
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
Registering Fixtures
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', ) ) );
Usage
Command Line
Access the Doctrine command line as following
Load
./vendor/bin/doctrine-module fixtures:load