2017 © Pedro Peláez
 

library doctrine-data-fixtures-command

Doctrine DataFixtures CLI command

image

useallfive/doctrine-data-fixtures-command

Doctrine DataFixtures CLI command

  • Wednesday, October 30, 2013
  • by m14t
  • Repository
  • 23 Watchers
  • 4 Stars
  • 18,647 Installations
  • 3 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Doctrine DataFixtures command

SensioLabsInsight, (*1)

This is a version of the Symfony 2 Doctrine Data Fixtures command that does NOT require symfony., (*2)

Installation

Via composer:, (*3)

php composer.phar require useallfive/doctrine-data-fixtures-command dev-master

If you don't already have your own version of the Doctrine CLI tool, you can copy the one provided with doctrine and place it wherever you see fit. For this example we'll place it in the project root. It's also worth mentioning that you can utilize a composer post install/update hook to take care of this for you., (*4)

cp vendor/bin/doctrine.php doctrine

Add the command to the $commands array in your CLI script., (*5)

// ...
$commands = array(
    new \UseAllFive\Command\LoadDataFixturesDoctrineCommand(),
);

You're all set!, (*6)

Notes

Unlike the symfony 2 version of this, you'll need to specify a fixtures path., (*7)

php doctrine fixtures:load /path/to/fixtures

The Versions

30/10 2013

dev-master

9999999-dev

Doctrine DataFixtures CLI command

  Sources   Download

MIT

The Requires

 

by Zach Brown

orm console silex doctrine web pimple datafixtures