Doctrine\DBAL\Connection::fetchAll
Prepares and executes an SQL query and returns the result as an associative array.
Signature
public function fetchAll(string
$sql,
array
$params )
Parameters
$sql
— string- The SQL query.
$params
— array- The query parameters.
Returns
- array