try game hints
This commit is contained in:
parent
b31c8b3529
commit
beae582c74
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class HitRepository extends EntityRepository
|
||||||
public function getBetterHit(Hit $hit) {
|
public function getBetterHit(Hit $hit) {
|
||||||
// we want only the slightly better hit...
|
// we want only the slightly better hit...
|
||||||
$query = $this->_em->createQuery(
|
$query = $this->_em->createQuery(
|
||||||
"SELECT * FROM ".Hit::class." WHERE target = :target AND score > :score ORDER BY score ASC"
|
"SELECT h.* FROM ".Hit::class." h WHERE h.target = :target AND h.score > :score ORDER BY score ASC"
|
||||||
)
|
)
|
||||||
->setMaxResults(1)
|
->setMaxResults(1)
|
||||||
->setParameters([
|
->setParameters([
|
||||||
|
|
Loading…
Reference in a new issue