Skip to content

Commit

Permalink
Fix #545: Fix CRUD for non-relational databases
Browse files Browse the repository at this point in the history
  • Loading branch information
spzgy authored Feb 13, 2025
1 parent 79aceaf commit d9d1a8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/generators/crud/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit d9d1a8d

Please sign in to comment.