kayue / KayueWordpressBundle

A Symfony 2 bundle for providing WordPress repositories and authenticating users (login).
101 stars 43 forks source link

Blog: fix using multiple entity manager can cause wrong query #20

Closed luiges90 closed 11 years ago

luiges90 commented 11 years ago

Root cause: we were passing a Doctrine Config object from the default entity manager into our new entity manager. As a result, when we set the cache implementation of our "presumed" new entity manager, we (wrongly) set the cache implementation of the default entity manager, because they shared the same config object.