Commit 99c1dc9b by Alexander Makarov

Merge pull request #4069 from yiisoft/revert-4035-gii-search-model-generator-fix

Revert "Gii `*Search` model generator fix"
parents 34c7a81a a73a2d3f
...@@ -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 = static::find(); $query = <?= isset($modelAlias) ? $modelAlias : $modelClass ?>::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