Property | Type | Description | |
---|---|---|---|
$scenario | the scenario to be assigned to the new model before it is validated and saved. | ||
$viewAction | the name of the view action. This property is need to create the URL when the model is successfully created. |
Method | Description | |
---|---|---|
run ( ) : yii\db\ActiveRecordInterface | Creates a new model. |
public run ( ) : yii\db\ActiveRecordInterface | ||
return | yii\db\ActiveRecordInterface | the model newly created |
public $scenario |