chaplean / doctrine-extensions-bundle
Doctrine extensions (including Gedmo)
Installs: 1 213
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.0.8
- doctrine/doctrine-bundle: ^1.6
- doctrine/orm: ^2.5
- gedmo/doctrine-extensions: ^2.4
- stof/doctrine-extensions-bundle: ^1.2
- symfony/config: ^3.0 || ^4.0
- symfony/console: ^3.0 || ^4.0
- symfony/dependency-injection: ^3.0 || ^4.0
- symfony/yaml: ^3.0 || ^4.0
Requires (Dev)
- chaplean/codeship-scripts: ^1.0
- chaplean/coding-standard: ^1.1
- mockery/mockery: dev-master
- phpunit/phpunit: ^7.0
- symfony/http-kernel: ^3.0 || ^4.0
- symfony/var-dumper: ^3.0 || ^4.0
README
Prerequisites
This version of the bundle requires Symfony 2.8+.
Installation
1. Composer
composer require chaplean/doctrine-extensions-bundle
2. AppKernel.php
Add
new Chaplean\Bundle\DoctrineExtensionsBundle\ChapleanDoctrineExtensionsBundle(), new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
3. app/config/config.yml
Optional : mapping for loggable/translatable/tree
Add lines
doctrine: orm: mappings: translatable: type: annotation alias: Gedmo prefix: Gedmo\Translatable\Entity # make sure vendor library location is correct dir: '%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity' loggable: type: annotation alias: Gedmo prefix: Gedmo\Loggable\Entity dir: '%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity' tree: type: annotation alias: Gedmo prefix: Gedmo\Tree\Entity dir: '%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity'