Add IndexBy support
edefimov opened this issue · 1 comments
edefimov commented
For doctrine query builder the possibility of indexing results by field is missing. It would be convenient to write index results in such way:
$spec = Spec::andX(
Spec::eq('ended', 0),
Spec::indexBy('id')
);
return $this->em->getRepository(...)->match($spec);