db\BatchQueryResult key()

key() public method Returns the index of the current dataset. This method is required by the interface Iterator. public integer key ( )return integer The index of the current row.

db\BatchQueryResult $query

$query public property The query object associated with this batch query. Do not modify this property directly unless after reset() is called explicitly. public yii\db\Query $query = null

db\BatchQueryResult next()

next() public method Moves the internal pointer to the next dataset. This method is required by the interface Iterator. public void next ( )

db\BatchQueryResult current()

current() public method Returns the current dataset. This method is required by the interface Iterator. public mixed current ( )return mixed The current dataset.

db\BatchQueryResult fetchData()

fetchData() protected method Fetches the next batch of data. protected array fetchData ( )return array The data fetched

db\BatchQueryResult $db

$db public property The DB connection to be used when performing batch query. If null, the "db" application component will be used. public yii\db\Connection $db = null

db\BaseActiveRecord __unset()

__unset() public method Sets a component property to be null. This method overrides the parent implementation by clearing the specified attribute value. public void __unset ( $name )$name string The property name or the event name

db\BatchQueryResult $batchSize

$batchSize public property The number of rows to be returned in each batch. public integer $batchSize = 100

db\BatchQueryResult $each

$each public property Whether to return a single row during each iteration. If false, a whole batch of rows will be returned in each iteration. public boolean $each = false

db\BaseActiveRecord __isset()

__isset() public method Checks if a property value is null. This method overrides the parent implementation by checking if the named attribute is null or not. public boolean __isset ( $name )$name string The property name or the event name return boolean Whether the property value is null