$queryBuilder = $this
->postRepository
->createQueryBuilder('p')
->select('p as post')
;
$query = $this
->sphinx
->createQuery()
->select('id')
->from(...$this->sphinxIndices)
->match(['post_title', 'post_text'], $searchQuery)
->orderBy('post_date', 'desc')
->useQueryBuilder($queryBuilder, 'p', 'id')
;
Possibly can be fixed if last 'id' parameter can be a custom getter callable.
Error caused by code:
Possibly can be fixed if last 'id' parameter can be a custom getter callable.