Commit 91caf681 by Alexander Makarov

Merge pull request #4035 from creocoder/gii-search-model-generator-fix

Gii `*Search` model generator fix
parents 607294a4 73fad8eb
...@@ -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