yii2-gii icon indicating copy to clipboard operation
yii2-gii copied to clipboard

Update Generator.php

Open spzgy opened this issue 1 year ago • 2 comments

In yii\db\BaseActiveRecord, there is no getTableSchema method. When using Gii to generate CRUD for non-relational databases, an error occurs because the getTableSchema method cannot be found.

Q A
Is bugfix? ✔️/❌
New feature? ✔️/❌
Breaks BC? ✔️/❌
Fixed issues

spzgy avatar Nov 22 '23 10:11 spzgy

PR Summary

  • Updated ActiveRecord Class in Generator The type of ActiveRecord we use in our 'Generator' code file has been updated. Instead of 'BaseActiveRecord', now 'ActiveRecord' is used which means we're accessing the more comprehensive functionality provided by ActiveRecord. This could potentially increase efficiency and manageability of the code.

what-the-diff[bot] avatar Nov 22 '23 10:11 what-the-diff[bot]

Please add a line for CHANGELOG. Thanks.

samdark avatar Nov 23 '23 13:11 samdark