Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
bc006f3e01 | |||
23c56f9511 |
@ -247,7 +247,7 @@ abstract class Repository implements RepositoryInterface
|
||||
->from($this->getTable())
|
||||
->where(['id = ?'])
|
||||
->limit(1);
|
||||
return $this->load($this->getConnection()->execute($query, [$id])->getAsArray()[0]);
|
||||
return $this->load($this->getConnection()->execute($query, [$id])->getFirstAsArray());
|
||||
}
|
||||
public function fetchAll(): array
|
||||
{
|
||||
|
Reference in New Issue
Block a user