math
math

Reputation: 81

Symfony2: Update schema with dynamic entity manager

I have a problem with updating database schema. I have a entity manager for connect to database via db name when user logging. I have two databases - db1 and db2. I want to update schema for each databases. Is it possible in doctrine?

Upvotes: 0

Views: 406

Answers (1)

Cristian Bujoreanu
Cristian Bujoreanu

Reputation: 1167

Yes, it's possible, you need multiple connections defined in your config.yml. Check here http://symfony.com/doc/current/cookbook/doctrine/multiple_entity_managers.html

Upvotes: 1

Related Questions