The QueryBuilder needs quite some things to do its work, for example the mapping metadata and cache implementations. Those dependencies are all configured through the EntityManager. So I don't think that this decoupling will happen.
But that doesn't mean you can't use the QueryBuilder offline. Simply don't perform any hydration/persistance actions with the EntityManager and you won't need a real db connection. -- Jasper N. Brouwer (@jaspernbrouwer) On 1 July 2014 at 21:34:13, Yosmany Garcia ([email protected]) wrote: > Hi guys, > > Should it be posible, in a future version of Doctrine, to have QueryBuilder > decoupled from EntityManager. > > IMHO, I see a QueryBuilder as an "offline" tool to build dql statements, so > why it needs to have an EntityManager as a dependency? > > Regards, > Yosmany -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
