dxi / doctrine-extension-bundle
There is no license information available for the latest version (dev-master) of this package.
DXI Doctrine Extensions
dev-master / 1.0.x-dev
2018-03-27 15:23 UTC
Requires
- php: >=5.3.3
- dxi/doctrine-extension: ~1.0
Requires (Dev)
- behat/behat: ~3.0
- doctrine/doctrine-bundle: ~1.3
- doctrine/mongodb-odm-bundle: 3.1.x-dev
- doctrine/orm: ~2.4
- marc-mabe/php-enum: ~2.0
- phpunit/phpunit: ~4.2
- stof/doctrine-extensions-bundle: 1.2.x-dev
- webit/test-tools: 0.*
This package is not auto-updated.
Last update: 2024-10-30 09:46:31 UTC
README
Doctrine 2 extensions Symfony 2 integration
Installation
Add the dxi/doctrine-extension-bundle into composer.json
{ "require": { "php": ">=5.3.2", "dxi/doctrine-extension-bundle": "~1.0" } }
Register the Bundle in the AppKernel
// in AppKernel::registerBundles() $bundles = array( // ... new Dxi\DoctrineExtensionBundle\DxiDoctrineExtensionBundle(), // ... );
Enum Extension - Configuration
Enabling Enum Extension
# app/config/config.yml dxi_doctrine_extension: enum: types: dxi.my_type: MyEnum #register your enum types here
It generates ODM / DBAL Types for "MyEnum" class and registers them.
See Enum extension documentation:
https://github.com/DXI-Ltd/doctrine-extension
Reference Extension
Enabling Reference Extension
# app/config/config.yml dxi_doctrine_extension: reference: true
See Reference extension documentation:
https://github.com/DXI-Ltd/doctrine-extension https://github.com/Atlantic18/DoctrineExtensions/blob/master/doc/references.md