diff --git a/CHANGELOG.md b/CHANGELOG.md index 235ff243d..9de2133ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Yii Framework 2 gii extension Change Log - Enh #537: Generating rules for the fields with default values (manky) - Enh #542: Use the table name to create the relation (thiagotalma) - Enh #534: Generating in model ENUM fields value constants, setter and getter methods (uldisn) +- Bug #545: Fix CRUD for non-relational databases (spzgy) 2.2.6 May 22, 2023 diff --git a/src/generators/crud/Generator.php b/src/generators/crud/Generator.php index 81e2a559f..240df3e11 100644 --- a/src/generators/crud/Generator.php +++ b/src/generators/crud/Generator.php @@ -556,7 +556,7 @@ public function generateActionParamComments() public function getTableSchema() { $class = $this->modelClass; - if (is_subclass_of($class, '\yii\db\BaseActiveRecord')) { + if (is_subclass_of($class, '\yii\db\ActiveRecord')) { return $class::getTableSchema(); }