Newscoop\Doctrine\AdoDbAdapter::getAll PHP Method

getAll() public method

Execute sql query and return the result as an array
public getAll ( string $sql, array $params = [] ) : array
$sql string
$params array
return array
    public function getAll($sql, array $params = array())
    {
        try {
            return $this->connection->fetchAll($sql, $params);
        } catch (\Exception $e) {
            print_r($e->getMessage());
            print_r($e->getTraceAsString());
            exit;
        }
    }