Finally, able to inject doctrine as dependency for model manager factory.