rvdlee-salesupply/doctrine-data-fixture-module
Composer 安装命令:
composer require rvdlee-salesupply/doctrine-data-fixture-module
包简介
A port for ZF3 of Hounddog's original data-fixture code.
README 文档
README
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.
$ composer require rvdlee-salesupply/doctrine-data-fixture-module
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 [ 'doctrine' => [ 'fixture' => [ __NAMESPACE__ . '_fixture' => __DIR__ . '/../src/' . __NAMESPACE__ . '/Fixture', ] ] ];
Usage
Command Line
Access the Doctrine command line as following from your project root:
$ ./vendor/bin/doctrine-module data-fixture:import
统计信息
- 总下载量: 277
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-01