Pull Entity Manager from the Doctrine CLI helper instead of hardcoding it

See #6