Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chaplean/doctrine-extensions-bundle
https://github.com/chaplean/doctrine-extensions-bundle
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chaplean/doctrine-extensions-bundle
- Owner: chaplean
- Created: 2019-07-08T14:26:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-08T14:30:17.000Z (over 5 years ago)
- Last Synced: 2024-05-01T06:43:39.604Z (8 months ago)
- Language: PHP
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Getting Started With Chaplean Doctrine Extensions Bundle
========================================================# Prerequisites
This version of the bundle requires Symfony 2.8+.
# Installation
## 1. Composer
```
composer require chaplean/doctrine-extensions-bundle
```## 2. AppKernel.php
Add
```php
new Chaplean\Bundle\DoctrineExtensionsBundle\ChapleanDoctrineExtensionsBundle(),
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
```## 3. app/config/config.yml
##### Optional : mapping for loggable/translatable/tree
Add lines
```yml
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'
```