doctrine2 - symfony2 I need to connect to 2 different databases. What should I do?
巴扎黑2017-05-16 16:44:17
0
1
467
I need to obtain data from two databases in the controller, how to do it? http://symfony.cn/docs/cookbook/doctrine/multiple_entity_managers.html...
I searched for this answer, but after doing it, it didn't work
Get database A instance
Get data B instance
Get data from the product entity of the A instance
Get data from the product entity of the B instance