Skip to content

Instantly share code, notes, and snippets.

@elnur
Created April 23, 2012 16:41
Show Gist options
  • Save elnur/2472188 to your computer and use it in GitHub Desktop.
Save elnur/2472188 to your computer and use it in GitHub Desktop.
Doctrine ORM configuration to keep models out of a bundle
doctrine:
dbal:
driver: %database_driver%
host: %database_host%
port: %database_port%
dbname: %database_name%
user: %database_user%
password: %database_password%
charset: UTF8
orm:
auto_generate_proxy_classes: %kernel.debug%
mappings:
model:
type: annotation
dir: %kernel.root_dir%/../src/Elnur/Model
prefix: Elnur\Model
alias: Model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment