Commit 70e43175 authored by Clarissa's avatar Clarissa

Arrumado o retorno no GenericDao

parent 9387a869
......@@ -184,12 +184,11 @@ abstract class GenericDao {
$resultSet[] = $objeto;
}
return count($resultSet) == 0 ? NULL : $resultSet;
return $resultSet;
} catch (PDOException $e) {
throw new \Exception("Erro ao inserir:{$e->getMessage()}");
}
return $stmt->fetch(PDO::FETCH_ASSOC);
}
protected abstract function getNomeTabela();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment