db\BaseActiveRecord deleteAll()

deleteAll() public static method Deletes rows in the table using the provided conditions. WARNING: If you do not specify any condition, this method will delete ALL rows in the table. For example, to delete all customers whose status is 3: Customer::deleteAll('status = 3'); public static integer deleteAll ( $condition = '', $params = [] )$condition string|array The conditions that will be put in the WHERE part of the DELETE SQL. Please refer to yii\db\Query::where() on how to specify t

gii\generators\controller\Generator $actionIDs

$actionIDs public read-only property An array of action IDs entered by the user public array getActionIDs ( )

db\BaseActiveRecord afterRefresh()

afterRefresh() public method (available since version 2.0.8) This method is called when the AR object is refreshed. The default implementation will trigger an EVENT_AFTER_REFRESH event. When overriding this method, make sure you call the parent implementation to ensure the event is triggered. public void afterRefresh ( )

db\BaseActiveRecord findByCondition()

findByCondition() protected static method Finds ActiveRecord instance(s) by the given condition. This method is internally called by findOne() and findAll(). protected static yii\db\ActiveQueryInterface findByCondition ( $condition )$condition mixed Please refer to findOne() for the explanation of this parameter return yii\db\ActiveQueryInterface The newly created ActiveQuery instance. throws yii\base\InvalidConfigException if there is no primary key defined

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 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 ( )

elasticsearch\Command updateSettings()

updateSettings() public method (available since version 2.0.4) Change specific index level settings in real time. Note that update analyzers required to \yii\elasticsearch\close() the index first and \yii\elasticsearch\open() it after the changes are made, use updateAnalyzers() for it. See also http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-update-settings.html. public mixed updateSettings ( $index, $setting, $options = [] )$index string $setting string|ar

db\ActiveQueryInterface with()

with() public abstract method Specifies the relations with which this query should be performed. The parameters to this method can be either one or multiple strings, or a single array of relation names and the optional callbacks to customize the relations. A relation name can refer to a relation defined in modelClass or a sub-relation that stands for a relation of a related record. For example, orders.address means the address relation defined in the model class corresponding to the orders

elasticsearch\Query exists()

exists() public method Returns a value indicating whether the query result contains any row of data. public boolean exists ( $db = null )$db yii\elasticsearch\Connection The database connection used to execute the query. If this parameter is not given, the elasticsearch application component will be used. return boolean Whether the query result contains any row of data.

db\Connection $slaves

$slaves public property List of slave connection configurations. Each configuration is used to create a slave DB connection. When $enableSlaves is true, one of these configurations will be chosen and used to create a DB connection for performing read queries only. See also: $enableSlaves $slaveConfig public array $slaves = []