doctrine / data-fixtures

Doctrine2 ORM Data Fixtures Extensions
http://www.doctrine-project.org
MIT License
2.77k stars 224 forks source link

Integration with zend Expressive #304

Closed jl91 closed 5 years ago

jl91 commented 5 years ago

Hello Guys, this is John, Let me ask you one thing, there is one type of integration with zend expressive and doctrine datafixtures? i search on gist.github.com.br but o dont found anything.

Ocramius commented 5 years ago

data-fixtures usage is straightforward:

        $loader = new Loader();
        $loader->addFixture(new Fixture1());
        $loader->addFixture(new Fixture2());
        $loader->addFixture(new Fixture3());

        (new ORMExecutor($entityManager, new ORMPurger()))
            ->execute($loader->getFixtures());

No need for framework integration