app/config/config_doctrine.yml
# Doctrine Configuration
doctrine:
dbal:
driver: %database_driver%
host: %database_host%
port: %database_port%
dbname: %database_name%
user: %database_user%
password: %database_password%
charset: UTF8
server_version: 5.6
# if using pdo_sqlite as your database driver, add the path in parameters.php
# e.g. database_path: %kernel.root_dir%/data/data.db3
# path: %database_path%
orm:
auto_generate_proxy_classes: %kernel.debug%
connection: ~
auto_mapping: true
metadata_cache_driver: %cache.doctrine%
query_cache_driver: %cache.doctrine%
result_cache_driver: %cache.doctrine%
mappings:
gedmo_tree:
type: annotation
prefix: Gedmo\Tree\Entity
dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
alias: GedmoTree # this one is optional and will default to the name set for the mapping
is_bundle: false
doctrine_migrations:
dir_name: %kernel.root_dir%/../src/PartKeepr/CoreBundle/DoctrineMigrations
namespace: PartKeepr\CoreBundle\DoctrineMigrations
table_name: SchemaVersions
name: Application Migrations
stof_doctrine_extensions:
default_locale: en_US
orm:
default:
tree: true