Peter Rehm's Blog

apple,development,life & more

Symfony2 Ordered Fixtures

Ohne Kommentare

If you want to set the order in which the Fixtures are boing loaded there are
two steps:

- Use the AbstractFixture Interface

class LoadCompanyData extends AbstractFixture implements OrderedFixtureInterface

- Add getOrder Methode

public function getOrder()
    return 1;

Than it will work.

Geschrieben von Peter Rehm

17.10.2012 um 19:33:40

Tags für diesen Artikel: ,