Guest User

Untitled

a guest
Aug 26th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. Importing tables from external database in Symfony2 with doctrine
  2. doctrine:
  3. dbal:
  4. default_connection: default
  5. connections:
  6. default:
  7. driver: pdo_mysql
  8. host: localhost
  9. dbname: database1
  10. user: root
  11. password:
  12. buv:
  13. driver: pdo_mysql
  14. host: localhost
  15. dbname: database2
  16. user: root
  17. password:
  18.  
  19. php app/console doctrine:mapping:convert xml ./src/App/MyBundle/Resources/config/doctrine/metadata/orm --from-database --force
  20.  
  21. php app/console doctrine:mapping:import AppMyBundle annotation --filter="users_table"
Add Comment
Please, Sign In to add comment