12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- parameters:
- # Adds a fallback DATABASE_URL if the env var is not set.
- # This allows you to run cache:warmup even if your
- # environment variables are not available yet.
- # You should not need to change this value.
- env(DATABASE_URL): ''
- doctrine:
- dbal:
- # configure these for your database server
- driver: 'pdo_mysql'
- server_version: '5.7'
- charset: utf8mb4
- # With Symfony 3.3, remove the `resolve:` prefix
- url: '%env(resolve:DATABASE_URL)%'
- orm:
- auto_generate_proxy_classes: '%kernel.debug%'
- naming_strategy: doctrine.orm.naming_strategy.underscore
- auto_mapping: true
- # filters:
- # softdeleteable:
- # class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
- # enabled: true
- mappings:
- App:
- is_bundle: false
- type: annotation
- dir: '%kernel.project_dir%/src/Entity'
- prefix: 'App\Entity'
- alias: App
- gedmo_translatable:
- type: annotation
- prefix: Gedmo\Translatable\Entity
- dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity"
- alias: GedmoTranslatable # (optional) it will default to the name set for the mapping
- is_bundle: false
- gedmo_translator:
- type: annotation
- prefix: Gedmo\Translator\Entity
- dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity"
- alias: GedmoTranslator # (optional) it will default to the name set for the mapping
- is_bundle: false
- gedmo_loggable:
- type: annotation
- prefix: Gedmo\Loggable\Entity
- dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity"
- alias: GedmoLoggable # (optional) it will default to the name set for the mapping
- is_bundle: false
- gedmo_tree:
- type: annotation
- prefix: Gedmo\Tree\Entity
- dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
- alias: GedmoTree # (optional) it will default to the name set for the mapping
- is_bundle: false
|