PHP Class yii\rest\UpdateAction

Since: 2.0
Author: Qiang Xue ([email protected])
Inheritance: extends Action
Show file Open project: yiisoft/yii2 Class Usage Examples

Public Properties

Property Type Description
$scenario the scenario to be assigned to the model before it is validated and updated.

Public Methods

Method Description
run ( string $id ) : yii\db\ActiveRecordInterface Updates an existing model.

Method Details

run() public method

Updates an existing model.
public run ( string $id ) : yii\db\ActiveRecordInterface
$id string the primary key of the model.
return yii\db\ActiveRecordInterface the model being updated

Property Details

$scenario public property

the scenario to be assigned to the model before it is validated and updated.
public $scenario