the parameter to know if phpcr-odm is active should be set explicitly in the DI extension, see for example https://github.com/symfony-cmf/RoutingBundle/blob/master/DependencyInjection/CmfRoutingExtension.php#L127