2017 © Pedro Peláez
 

symfony-bundle fixtures-bundle

Doctrine Persistent Fixtures

image

eshta/fixtures-bundle

Doctrine Persistent Fixtures

  • Friday, November 18, 2016
  • by omars
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

EshtaFixturesBundle

Build Status, (*1)

Based on doctrine fixtures, similar to doctrine data fixtures bundle, but it persists fixtures instead, so it detects if a certain fixture is loaded it will not load it like doctrine migrations, best used as a place for seeded data., (*2)

Setup

Installation

composer require eshta/fixtures-bundle
// app/AppKernel.php
// ...

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        // ...
        $bundles[] = new Eshta\FixturesBundle\EshtaFixturesBundle();

        return $bundles
    }

    // ...
}

Configuration

Exclude the fixtures log table from DBAL schema, (*3)

doctrine:
    dbal:
        schema_filter: ~^(?!fixtures_log)~

Usage

Help:

app/console eshta:fixtures:load -h

Load:

app/console eshta:fixtures:load

It will load any outstanding fixtures only, it also supports ordering as with the normal fixtures bundle, (*4)

Load file:

app/console eshta:fixtures:load [--force] <file>

Documentation

checkout doctrine fixtures bundle except for setup, the documentation is the same., (*5)

The Versions

18/11 2016

dev-master

9999999-dev https://github.com/eshta/fixtures-bundle

Doctrine Persistent Fixtures

  Sources   Download

MIT

The Requires

 

The Development Requires

by Omar Shaban

database doctrine persistence seed fixture

07/11 2016

v1.0.0

1.0.0.0 https://github.com/eshta/fixtures-bundle

Doctrine Persistent Fixtures

  Sources   Download

MIT

The Requires

 

The Development Requires

by Omar Shaban

database doctrine persistence seed fixture