FIX: Busqueda no funcionaba
This commit is contained in:
@ -575,7 +575,11 @@ class Venta extends Ideal\Repository
|
||||
protected function fetchId(string $query, ?array $data = null): array
|
||||
{
|
||||
try {
|
||||
return $this->connection->execute($query, $data)->fetch(PDO::FETCH_ASSOC);
|
||||
$result = $this->connection->execute($query, $data)->fetch(PDO::FETCH_ASSOC);
|
||||
if ($result === false) {
|
||||
throw new Implement\Exception\EmptyResult($query);
|
||||
}
|
||||
return $result;
|
||||
} catch (PDOException $exception) {
|
||||
throw new Implement\Exception\EmptyResult($query, $exception);
|
||||
}
|
||||
|
Reference in New Issue
Block a user