mongodb\BatchQueryResult next()

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

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

mongodb\BatchQueryResult fetchData()

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

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\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 $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 $batchSize

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

mongodb\ActiveRecord updateInternal()

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

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