This commit is contained in:
2021-03-04 15:36:35 +08:00
parent 5566bc34b5
commit 9d4f9b18ec
+1 -1
View File
@@ -862,8 +862,8 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
if (array_key_exists($name, $this->_attributes)) {
return static::getColumns()->_decode($name, $value);
}
var_dump($name, $this->_with);
if (in_array($name, $this->_with)) {
var_dump($this->_relate[$name]);
return $this->resolveClass($this->{$this->_relate[$name]}());
}
return parent::__get($name);