Programming Symfony & Doctrine repository running queries on wrong Entity Manager Today I setup Symfony 4 with two entity managers (two different MsSQL databases) and was having issues with my custom repository functions for entities on my second entity manager querying