On 1 March 2014 01:57, Matthieu Napoli <[email protected]> wrote: > Well I understand, but this documentation is only about DBAL, and that’s > my problem. > > I have no idea if the ORM (which uses DBAL) will fetch entities using > « executeQuery » outside of transactions. I don’t know what methods the ORM > uses on the DBAL connection. >
I can't tell for sure. You may want to look at https://github.com/doctrine/dbal/pull/535 to have an idea if that's the case. > > I am afraid by feeding the ORM this special DBAL connections all queries > will go to the master. I just want to make sure that this DBAL features is > compatible with the ORM: > > - fetching entities go to slaves (i.e. it uses executeQuery without > transactions) > - anything else go to master > > That *should* be the case, but you really need to check manually. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ -- 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/groups/opt_out.
