FOSElasticaBundle/Doctrine/ORM
Peter Mitchell 2009f88109 Make fetchSlice compatible with custom repo method
If a user configures query_builder_method for the doctrine provider, and
does not alias the root entity to equal Provider::ENTITY_ALIAS then a
DQL error will occur during index population.

> [Semantical Error] [...] near 'a.id ASC': Error: 'a' is not defined.

Provider::countObjects already handles this by dynamically fetching the
alias with QueryBuilder::getRootAliases, and Provider::fetchSlice should
be doing the same.

nb. "Provider" refers to FOS\ElasticaBundle\Doctrine\ORM\Provider
2014-03-19 08:40:58 -04:00
..
ElasticaToModelTransformer.php Add query_builder_method option to the transformers 2013-11-11 13:14:02 +11:00
Provider.php Make fetchSlice compatible with custom repo method 2014-03-19 08:40:58 -04:00