sergeil / SliDoctrineArrayQueryBuilderBundle

Adds support for building Doctrine ORM queries using a simple array notation.
0 stars 0 forks source link

Bad service definitions #1

Open linuxninja39 opened 9 years ago

linuxninja39 commented 9 years ago

[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
The service "sli_doctrine_array_query_builder.querying.array_query_builder" has a dependency on a non-existent service "sli_doctrine_entity_data_mapper.mapping.entity_data_ma
pper".

linuxninja39 commented 9 years ago

Found a fix for this issue, but it led to another.... The issue above was cause by not registering the extension in SliDoctrineArrayQueryBuilderBundle.php. I added the following lines

public function getContainerExtension() { return new SliDoctrineEntityDataMapperExtension(); }

Once that was there I got the following error [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
The service "sli_doctrine_entity_data_mapper.mapping.entity_data_mapper" has a dependency on a non-existent service "sli.aux.javabeans_ofm".

That was resolved by registering the SliAuxBundle in the AppKernel.

linuxninja39 commented 9 years ago

After the above fixes got the following error. [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
The service "sli_doctrine_entity_data_mapper.mapping.entity_data_mapper" has a dependency on a non-existent service "sli_doctrine_entity_data_mapper.complex_field_value_conve
rters_provider".

This was fixed by registering the SliDoctrineEntityDataMapperBundle in the AppKernel.

This last step resolved all the installation issues that I saw.

I'm going to fork, fix and do a pull request.