Fetch signle row

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Lukas Reschke 2017-05-05 00:08:23 +02:00
parent 4d96cd3df7
commit 1470ec95ca
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class AccessTokenMapper extends Mapper {
->from($this->tableName)
->where($qb->expr()->eq('hashed_code', $qb->createNamedParameter(hash('sha512', $code))));
$result = $qb->execute();
$row = $result->fetchAll();
$row = $result->fetch();
$result->closeCursor();
return AccessToken::fromRow($row);
}