This is for doctrine migrations CLI to work. I'll create another pull request when it is ready.