From acb754a72e6393bcd7a3ae68211dc896a5a970db Mon Sep 17 00:00:00 2001 From: MaSi Date: Sat, 22 Aug 2015 21:52:14 +0200 Subject: [PATCH] Update RE Add loading fixtures instructions Update checklist --- README.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 6c48162..3a70d93 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -Aist Alice Fixtures [![SensioLabsInsight](https://insight.sensiolabs.com/projects/c344bb5d-9d66-4f63-b006-b4d758643904/small.png)](https://insight.sensiolabs.com/projects/c344bb5d-9d66-4f63-b006-b4d758643904) -=================== -A Zend Framework 2 Module to help load Doctrine Fixtures with [nelmio/alice](https://github.com/nelmio/alice) and [fzaninotto/Faker](https://github.com/fzaninotto/Faker). +AistAliceFixtures [![SensioLabsInsight](https://insight.sensiolabs.com/projects/c344bb5d-9d66-4f63-b006-b4d758643904/small.png)](https://insight.sensiolabs.com/projects/c344bb5d-9d66-4f63-b006-b4d758643904) +================= +A Zend Framework 2 Module integrating [nelmio/alice](https://github.com/nelmio/alice) and [fzaninotto/Faker](https://github.com/fzaninotto/Faker). +AistAliceFixtures allows you to create fixtures/fake data for use while developing or testing projects. It provides you a few essential tools to make it very easy to generate complex data with constraints in a readable and easy to edit way. [![Build Status](https://travis-ci.org/ma-si/aist-alice-fixtures.svg?branch=master)](https://travis-ci.org/ma-si/aist-alice-fixtures) [![Total Downloads](https://poser.pugx.org/aist/aist-alice-fixtures/downloads)](https://packagist.org/packages/aist/aist-alice-fixtures) @@ -11,10 +12,6 @@ A Zend Framework 2 Module to help load Doctrine Fixtures with [nelmio/alice](htt [![License](https://poser.pugx.org/aist/aist-alice-fixtures/license)](https://packagist.org/packages/aist/aist-alice-fixtures) -## Introduction -Add fixtures to your modules. - - ## Installation Installation of this module uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/). @@ -29,8 +26,7 @@ For composer documentation, please refer to [getcomposer.org](http://getcomposer 2. Add the `AistAliceFixtures` module to the module section of your `config/application.config.php` ## Formatters -This module provides few useful formatters extending faker. Here is a list of the bundled formatters. - +This module provides additional formatters extending faker. Here is a list of the bundled formatters. ### `AistAliceFixtures\Faker\Provider\Internet` extends `Faker\Provider\Internet` slug // 'aut-repellat-commodi-vel-itaque-nihil-id-saepe-nostrum' @@ -39,8 +35,7 @@ This module provides few useful formatters extending faker. Here is a list of th `` allows to pass parameter into slugifier -## Example -Here is a complete example of entity declaration: +## Example fixture ```yaml AistUser\Entity\AistUser: @@ -53,5 +48,11 @@ AistUser\Entity\AistUser: ``` -## Check list -- [ ] create checklist +## Loading fixtures + bin/doctrine-module orm:fixtures:load --force +It will append fixtures to existing DB. + + +## Checklist +- [ ] Add truncate data & --append option +- [ ] Add tests