yii\db\DataReader::close PHP Method

close() public method

This frees up the resources allocated for executing this SQL statement. Read attempts after this method call are unpredictable.
public close ( )
    public function close()
    {
        $this->_statement->closeCursor();
        $this->_closed = true;
    }