Great. That is what I'm talking about. I will give it a try. Best regards, Sliver
Lukas Kahwe Smith <m...@pooteeweet.org> 於 2011/11/12 上午6:49 寫道: > > On Nov 11, 2011, at 18:22 , sliver wrote: > >> I wonder how this works with service injected by @doctrine. Can I inject the >> right entity manager into these services? >> >> This is another though: >> Maybe I could set up 2 machine with different connection. One for master and >> the other for slave. > > well if you have the registry then you just need to dynamically determine the > name of the connection that you want to retrieve. > maybe we should add a setter for the default connection/manager name to be > able to change it via a listener: > https://github.com/doctrine/common/blob/master/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php#L134 > > regards, > Lukas Kahwe Smith > m...@pooteeweet.org > > > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony developers" group. > To post to this group, send email to symfony-devs@googlegroups.com > To unsubscribe from this group, send email to > symfony-devs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en