mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
REST wip.
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
namespace yii\rest;
|
||||
|
||||
use yii\base\InvalidConfigException;
|
||||
use yii\base\Model;
|
||||
use yii\web\ForbiddenHttpException;
|
||||
|
||||
/**
|
||||
@ -44,12 +45,12 @@ class ActiveController extends Controller
|
||||
* @var string the scenario used for updating a model.
|
||||
* @see \yii\base\Model::scenarios()
|
||||
*/
|
||||
public $updateScenario = 'api-update';
|
||||
public $updateScenario = Model::SCENARIO_DEFAULT;
|
||||
/**
|
||||
* @var string the scenario used for creating a model.
|
||||
* @see \yii\base\Model::scenarios()
|
||||
*/
|
||||
public $createScenario = 'api-create';
|
||||
public $createScenario = Model::SCENARIO_DEFAULT;
|
||||
/**
|
||||
* @var boolean whether to use a DB transaction when creating, updating or deleting a model.
|
||||
* This property is only useful for relational database.
|
||||
|
Reference in New Issue
Block a user