Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Importing tables from external database in Symfony2 with doctrine
- doctrine:
- dbal:
- default_connection: default
- connections:
- default:
- driver: pdo_mysql
- host: localhost
- dbname: database1
- user: root
- password:
- buv:
- driver: pdo_mysql
- host: localhost
- dbname: database2
- user: root
- password:
- php app/console doctrine:mapping:convert xml ./src/App/MyBundle/Resources/config/doctrine/metadata/orm --from-database --force
- php app/console doctrine:mapping:import AppMyBundle annotation --filter="users_table"
Add Comment
Please, Sign In to add comment