Skip to content
Fork of Hounddogs original ZF2 code ported to ZF3.
PHP
Branch: master
Clone or download
Pull request Compare This branch is 16 commits ahead of Hounddog:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
src/DoctrineDataFixtureModule
tests
.gitignore
.travis.yml
LICENSE
Module.php
README.md
clover.xml
composer.json
composer.lock
coveralls-upload.json
phpunit.xml

README.md

DoctrineDataFixture Module for Zend Framework 3

Build Status Coverage Status Scrutinizer Code Quality Percentage of issues still open Average time to resolve an issue

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 
You can’t perform that action at this time.