kenkataiwa/doctrine-fixtures-module 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kenkataiwa/doctrine-fixtures-module

Composer 安装命令:

composer require kenkataiwa/doctrine-fixtures-module

包简介

Zend Framework Doctrine Fixtures Module

README 文档

README

Build Status Code Coverage Latest Stable Version Latest Unstable Version

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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-26