Commit 73fad8eb by Alexander Kochetov

Gii `*Search` model generator fix

parent 607294a4
...@@ -60,7 +60,7 @@ class <?= $searchModelClass ?> extends <?= isset($modelAlias) ? $modelAlias : $m ...@@ -60,7 +60,7 @@ class <?= $searchModelClass ?> extends <?= isset($modelAlias) ? $modelAlias : $m
*/ */
public function search($params) public function search($params)
{ {
$query = <?= isset($modelAlias) ? $modelAlias : $modelClass ?>::find(); $query = static::find();
$dataProvider = new ActiveDataProvider([ $dataProvider = new ActiveDataProvider([
'query' => $query, 'query' => $query,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment