Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
23 | class UpdateAction extends Action |
||
24 | { |
||
25 | /** |
||
26 | * @var string the scenario to be assigned to the model before it is validated and updated. |
||
27 | */ |
||
28 | public $scenario = Model::SCENARIO_DEFAULT; |
||
29 | |||
30 | |||
31 | /** |
||
32 | * Updates an existing model. |
||
33 | * @param string $id the primary key of the model. |
||
34 | * @return \yii\db\ActiveRecordInterface the model being updated |
||
35 | * @throws ServerErrorHttpException if there is any error when updating the model |
||
36 | */ |
||
37 | public function run($id) |
||
55 |