PHPackages                             ds-restauration/seed-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. ds-restauration/seed-bundle

ActiveLibrary

ds-restauration/seed-bundle
===========================

Seed helper through symfony commands

3.0.0(6y ago)072MITPHPPHP &gt;=7.0.0

Since Jul 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ds-restauration/SeedBundle)[ Packagist](https://packagist.org/packages/ds-restauration/seed-bundle)[ RSS](/packages/ds-restauration-seed-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (6)Versions (17)Used By (0)

Symfony/Doctrine Seed Bundle
============================

[](#symfonydoctrine-seed-bundle)

Description
-----------

[](#description)

Generates and persists seed data. Derived from Soyuka's seed bundle:

Configuration
-------------

[](#configuration)

```
ds_restauration_seed:
  prefix: 'seed' # Command prefix "seed:yourseedname"
  directory: 'Seeds' # Default seed path: Bundle/Seeds
  separator: ':'
  seed_order: # Order to load seeds in, lowest loads first.  Any seed not in the list defaults to an order of 0
    seed1: -1
    seed2: 1
  seed_bundle: # Order to load bundles in, lowest loads first.  Any bundles not in the list defaults to an order of 0
    bundle1: -1
    bundle2: 1
```

Building a Seed
---------------

[](#building-a-seed)

The `Seed` class is a `Command` and :

- Must extend `DsRestauration\SeedBundle\Command\Seed`
- Must have a class name that ends by `Seed`
- Must call `setSeedName` in the configure method

```
