hounddog/doctrine-data-fixture-module 问题修复 & 功能扩展

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

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

hounddog/doctrine-data-fixture-module

最新稳定版本:0.0.4

Composer 安装命令:

composer require hounddog/doctrine-data-fixture-module

包简介

Zend Framework 2 Module that provides Doctrine Data-Fixture functionality

README 文档

README

Build Status Coverage Status

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 

统计信息

  • 总下载量: 334.8k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 39
  • 点击次数: 1
  • 依赖项目数: 17
  • 推荐数: 0

GitHub 信息

  • Stars: 37
  • Watchers: 8
  • Forks: 70
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-08-28