Fixed command as a service. Passing full Doctrine

Fixing #253