swissengine / doctrine-module-extension
Extension of Doctrine CLI tools
Installs: 278 895
Dependents: 2
Suggesters: 0
Security: 0
Stars: 9
Watchers: 4
Forks: 3
Open Issues: 0
Requires
- php: >=5.3
This package is not auto-updated.
Last update: 2024-12-17 04:01:29 UTC
README
This small module aims at providing a simple way to add a few features (seamlessly) to the doctrine CLI tool (ZF2) such as the ability to specify the entity manager we want to use optionally.
php public/index.php orm:validate-schema --em=orm_custom
Installation
Suggested installation method is through composer:
php composer.phar require swissengine/doctrine-module-extension:dev-master
Setup
If you use Zend Framework 2, you can now enable this module in your application by adding it to config/application.config.php
as SwissEngine\Tools\Doctrine\Extension
.
Just make sure, in order for this to work, you have your doctrine factories set in your config file.
[ 'service_manager' => [ 'factories' => [ 'doctrine.entitymanager.orm_custom' => new \DoctrineORMModule\Service\EntityManagerFactory('orm_custom'), ], ] ];