This commit is contained in:
2021-01-19 19:09:30 +08:00
parent b6b6febce2
commit dab9fae0f0
2 changed files with 4 additions and 4 deletions
+4
View File
@@ -311,6 +311,10 @@ class ActiveRecord extends BaseActiveRecord
public function toArray(): array
{
$data = [];
$attributes = Snowflake::app()->getAttributes();
$callback = $attributes->getByClass(static::class);
var_dump($callback);
foreach ($this->_attributes as $key => $val) {
$data[$key] = $this->getAttribute($key);
}