We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b2b053 commit ff30250Copy full SHA for ff30250
rest/versions/v1/controllers/PostController.php
@@ -30,7 +30,7 @@ public function actions()
30
'checkAccess' => [$this, 'checkAccess'],
31
'prepareDataProvider' => function ($action) {
32
/* @var $model Post */
33
- $model = $this->modelClass;
+ $model = new $this->modelClass;
34
$query = $model::find();
35
$dataProvider = new ActiveDataProvider(['query' => $query]);
36
0 commit comments