elasticsearch\ActiveRecord updateInternal()

updateInternal() protected method

See also update().

protected integer|false updateInternal ( $attributes = null, $options = [] )
$attributes array

Attributes to update

$options array

Options given in this parameter are passed to elasticsearch as request URI parameters. See update() for details.

return integer|false

The number of rows affected, or false if beforeSave() stops the updating process.

throws yii\db\StaleObjectException

if optimistic locking is enabled and the data being updated is outdated.

throws yii\base\InvalidParamException

if no \yii\elasticsearch\version is available and optimistic locking is enabled.

throws yii\elasticsearch\Exception

in case update failed.

doc_Yii
2016-10-30 17:01:29
Comments
Leave a Comment

Please login to continue.