mongodb\BatchQueryResult rewind()

rewind() public method Resets the iterator to the initial state. This method is required by the interface Iterator. public void rewind ( )

mongodb\BatchQueryResult reset()

reset() public method Resets the batch query. This method will clean up the existing batch query so that a new batch query can be performed. public void reset ( )

mongodb\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\mongodb\Query $query = null

mongodb\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

mongodb\BatchQueryResult fetchData()

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

mongodb\BatchQueryResult $db

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

mongodb\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.

mongodb\ActiveRecord updateAllCounters()

updateAllCounters() public static method Updates all documents in the collection using the provided counter changes and conditions. For example, to increment all customers' age by 1, Customer::updateAllCounters(['age' => 1]); public static integer updateAllCounters ( $counters, $condition = [], $options = [] )$counters array The counters to be updated (attribute name => increment value). Use negative values if you want to decrement the counters. $condition array Description of t

mongodb\ActiveRecord updateInternal()

updateInternal() protected method See also yii\mongodb\ActiveRecord::update(). protected void updateInternal ( $attributes = null )$attributes throws yii\db\StaleObjectException

mongodb\BatchQueryResult $batchSize

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