PHPackages                             okvpn/fixture-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. okvpn/fixture-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

okvpn/fixture-bundle
====================

1.0.1(8y ago)06011[1 PRs](https://github.com/okvpn/fixture-bundle/pulls)1MITPHPPHP &gt;=5.5.9CI failing

Since Sep 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/okvpn/fixture-bundle)[ Packagist](https://packagist.org/packages/okvpn/fixture-bundle)[ Docs](https://github.com/okvpn/fixture-bundle)[ RSS](/packages/okvpn-fixture-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (4)Used By (1)

Data fixtures
=============

[](#data-fixtures)

Intro
-----

[](#intro)

Symfony allows to load data using data fixtures. But these fixtures are run each time when `doctrine:fixtures:load` command is executed.

To avoid loading the same fixture several time, **okvpn:fixtures:data:load** command was created. This command guarantees that each data fixture will be loaded only once.

This command supports two types of migration files: `main` data fixtures and `demo` data fixtures. During an installation, user can select to load or not demo data.

Fixtures order can be changed with standard Doctrine ordering or dependency functionality. More information about fixture ordering can be found in [doctrine data fixtures manual](https://github.com/doctrine/data-fixtures#fixture-ordering).

Installation
------------

[](#installation)

Install using composer:

```
composer require okvpn/fixture-bundle

```

And this bundle to your AppKernel:

```
