kenkataiwa/doctrine-fixtures-module

This package is abandoned and no longer maintained. No replacement package was suggested.

Zend Framework Doctrine Fixtures Module

dev-master / 0.1.x-dev 2018-06-12 15:40 UTC

This package is not auto-updated.

Last update: 2023-05-12 10:51:46 UTC


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