2017 © Pedro Peláez
 

library doctrine-fixtures-module

Zend Framework Doctrine Fixtures Module

image

kenkataiwa/doctrine-fixtures-module

Zend Framework Doctrine Fixtures Module

  • Tuesday, June 12, 2018
  • by kenkataiwa
  • Repository
  • 1 Watchers
  • 2 Stars
  • 328 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 16 % Grown

The README.md

Doctrine Fixtures Module for Zend Framework

Build Status Code Coverage Latest Stable Version Latest Unstable Version, (*1)

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., (*2)

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org., (*3)

$ composer require kenkataiwa/doctrine-fixtures-module

Then open config/application.config.php and add DoctrineModule, DoctrineORMModule and DoctrineFixturesModule to your modules, (*4)

Registering Fixtures

To register fixtures with Doctrine module add the fixtures in your configuration., (*5)

<?php
return array(
      'doctrine' => array(
            'fixtures' => array(
                  __NAMESPACE__.'_fixture' => __DIR__ . '/../src/'.__NAMESPACE__.'/Fixture',
            )
      )
);

Usage

Command Line

Access the Doctrine command line as following, (*6)

Load

./vendor/bin/doctrine-module fixtures:load 

The Versions