Show major hint

This commit is contained in:
Ruben 2016-09-04 17:37:42 +01:00
parent 16b9cb9e68
commit 0201eb1584

View file

@ -9,7 +9,7 @@ class HitRepository extends EntityRepository
public function getBetterHit(Hit $hit) {
// we want only the slightly better hit...
$query = $this->_em->createQuery(
"SELECT h FROM ".Hit::class." h WHERE h.target = :target AND h.score > :score ORDER BY h.score ASC"
"SELECT h FROM ".Hit::class." h WHERE h.target = :target AND h.score > :score ORDER BY h.score DESC"
)
->setMaxResults(1)
->setParameters([