ormdoctrinesymfonydoctrine-phpcr

DoctrinePHPcrBundle: Why use a separate connection if I also use ORM?


In the DoctrinePHPCRBundle documentation is stated:

It is recommended to use a separate connection to a separate database if you also use Doctrine ORM or direct DBAL access to data, rather than mixing this data with the tables generated by Jackalope Doctrine Dbal

Why?

Does this mean that if I'm using Doctrine to manage my entities I have to use a separate database to manage PHPCR?


Solution

  • I believe this is a best practice, not a requirement.

    From a systems view of an application, this practice improves system availability and from an application view it improves a separation of concerns.