Fetch signle row
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
4d96cd3df7
commit
1470ec95ca
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue