Browse Source

Remove code duplication in `ActiveRecord::attributes()`

master
Anton 3 years ago committed by GitHub
parent
commit
3203353a38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      framework/db/ActiveRecord.php

2
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();
}
/**

Loading…
Cancel
Save