yii\db\DataReader::readAll PHP Method

readAll() public method

Reads the whole result set into an array.
public readAll ( ) : array
return array the result set (each array element represents a row of data). An empty array will be returned if the result contains no row.
    public function readAll()
    {
        return $this->_statement->fetchAll();
    }