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

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

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

misterabdul/doctrine-data-fixture-module

最新稳定版本:v1.0.0

Composer 安装命令:

composer require misterabdul/doctrine-data-fixture-module

包简介

Laminas Module that provides Doctrine Data-Fixture functionality

README 文档

README

This is fork from Aqilix/DoctrineDataFixtureModule. This repository created caused by the old repo still using old Doctrine version and old Zend Event Manager, Module Manager and Service Manager (Zend Framework 3).

Introduction

The DoctrineDataFixtureModule module intends to integrate Doctrine 2 data-fixture with Laminas 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

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.

$ composer require misterabdul/doctrine-data-fixture-module

Then open config/modules.config.php and add DoctrineDataFixtureModule to your modules

Registering Fixtures

To register fixtures with Doctrine module add the fixtures in your configuration.

<?php
return [
      'data-fixture' => [
            'fixtures' => __DIR__ . '/../src/ModuleName/Fixture'
      ],
];

Usage

Command Line

Access the Doctrine command line as following

# Import
$ ./vendor/bin/doctrine-module data-fixture:import 

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 70
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-10