Commit 94fd4e7e by Alexander Makarov

Gii CRUD generator now uses new addFilter method

parent ecf019e3
...@@ -400,10 +400,10 @@ class Generator extends \yii\gii\Generator ...@@ -400,10 +400,10 @@ class Generator extends \yii\gii\Generator
case Schema::TYPE_TIME: case Schema::TYPE_TIME:
case Schema::TYPE_DATETIME: case Schema::TYPE_DATETIME:
case Schema::TYPE_TIMESTAMP: case Schema::TYPE_TIMESTAMP:
$conditions[] = "\$this->addCondition(\$query, '{$column}');"; $conditions[] = "\$this->addFilter(\$query, '{$column}');";
break; break;
default: default:
$conditions[] = "\$this->addCondition(\$query, '{$column}', true);"; $conditions[] = "\$this->addFilter(\$query, '{$column}', true);";
break; break;
} }
} }
......
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