Download the PHP package codeedu/zendexpr-doctrine-fixture without Composer
On this page you can find all versions of the php package codeedu/zendexpr-doctrine-fixture. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codeedu/zendexpr-doctrine-fixture
More information about codeedu/zendexpr-doctrine-fixture
Files in codeedu/zendexpr-doctrine-fixture
Package zendexpr-doctrine-fixture
Short Description Zend Expressive Library that provides Doctrine Data-Fixture functionality
License MIT
Informations about the package zendexpr-doctrine-fixture
About
This library provides integration with Zend Expressive and Doctrine Data Fixture. Also support PSR-11.
Get started
Instalation
Registering Fixtures
To register fixtures add the fixtures in your configuration.
Register factory to create the command:
We suggest to configure Doctrine ORM and commands with Zend Expressive using this gist. This configuration uses DoctrineModule. DoctrineModule provides easily configuration to integration Doctrine ORM in Zend Framework 2 Applications, so the approach is enjoy it.
Now in doctrine.config.php, so add doctrine:fixtures_cmd:load to:
Usage
Command Line
Access the Doctrine command line as following
Import
Dependency Injection with Fixtures
This library provides inject the service container in fixtures. So add interface FixtureContainerInterface, see below:
All versions of zendexpr-doctrine-fixture with dependencies
doctrine/data-fixtures Version 1.3.*
doctrine/orm Version ~2.5
container-interop/container-interop Version ~1.0