diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index a4f4a745..509ed6da 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -491,6 +491,11 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess public function getAttribute(string $name) { $method = 'get' . ucfirst($name) . 'Attribute'; + + $attributes = Snowflake::app()->getAttributes(); + $callback = $attributes->getByClass(static::class, $name); + var_dump($callback); + if (method_exists($this, $method)) { return $this->$method($this->_attributes[$name]); }