Download the PHP package sebrogala/xsv-doctrine without Composer
On this page you can find all versions of the php package sebrogala/xsv-doctrine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sebrogala/xsv-doctrine
More information about sebrogala/xsv-doctrine
Files in sebrogala/xsv-doctrine
Package xsv-doctrine
Short Description Middleware for Doctrine 2 integration with Zend Expressive
License proprietary
Homepage https://github.com/SebRogala/xsv-doctrine
Informations about the package xsv-doctrine
Zend Expressive 3 Doctrine 2 Module
Middleware module which integrates Doctrine 2 with Zend Expressive 3.
Basic usage
From data
directory copy doctrine.local.php.dist
to config/autoload
folder and remove .dist
while saving
credentials to database.
File cli-config.php.dist
is needed inside config
directory, as it's responsible for console use of Doctrine.
Enabale module in config/config.php
:
To get Entity Manager just use:
or as an alias:
Create additional EntityManager
To create one it is required to create new Class or Interface and provide new configuration for it's name. For example: inside create file:
Now inside config file, for example :
To use that EntityManager just get it from ServiceManager by newly created interface:
All versions of xsv-doctrine with dependencies
ocramius/proxy-manager Version ^2.2
doctrine/orm Version ^2.6
zendframework/zend-stdlib Version ^3.1
zendframework/zend-hydrator Version ^2.4