From 3203353a387d4db65d2a68e4d8c62442b02d556e Mon Sep 17 00:00:00 2001 From: Anton Date: Sun, 20 Feb 2022 01:01:24 +0300 Subject: [PATCH] Remove code duplication in `ActiveRecord::attributes()` --- framework/db/ActiveRecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } /**