diff --git a/framework/db/ActiveRecord.php b/framework/db/ActiveRecord.php index 7268f74..5632f0b 100644 --- a/framework/db/ActiveRecord.php +++ b/framework/db/ActiveRecord.php @@ -470,7 +470,7 @@ class ActiveRecord extends BaseActiveRecord */ public function attributes() { - return array_keys(static::getTableSchema()->columns); + return static::getTableSchema()->getColumnNames(); } /**