|
1 | 1 | ..index:: |
2 | 2 | single: Doctrine; Multiple entity managers |
3 | 3 |
|
4 | | -How to work with Multiple Entity Managers |
5 | | -========================================= |
6 | | - |
7 | | -You can use multiple entity managers in a Symfony2 application. This is |
8 | | -necessary if you are using different databases or even vendors with entirely |
9 | | -different sets of entities. In other words, one entity manager that connects |
10 | | -to one database will handle some entities while another entity manager that |
11 | | -connects to another database might handle the rest. |
| 4 | +How to work with Multiple Entity Managers and Connections |
| 5 | +========================================================= |
| 6 | + |
| 7 | +You can use multipleDoctrineentity managersor connectionsin a Symfony2 |
| 8 | +application. This isnecessary if you are using different databases or even |
| 9 | +vendors with entirelydifferent sets of entities. In other words, one entity |
| 10 | +manager that connectsto one database will handle some entities while another |
| 11 | +entity manager thatconnects to another database might handle the rest. |
12 | 12 |
|
13 | 13 | ..note:: |
14 | 14 |
|
|