kenkataiwa/doctrine-fixtures-module
Composer 安装命令:
composer require kenkataiwa/doctrine-fixtures-module
包简介
Zend Framework Doctrine Fixtures Module
README 文档
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
统计信息
- 总下载量: 1.23k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-26