Autodetect doctrine ORM

Only (re)initialize the ORM database if the bundle uses the ORM.

Also fixed the location bundle configuration so that it doesn't generate error noise in the test run.
Only update the schema if the bundle uses doctrine.orm