eee
This commit is contained in:
+2
-6
@@ -729,15 +729,11 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
|
||||
public function __get(string $name): mixed
|
||||
{
|
||||
if (isset($this->_attributes[$name])) {
|
||||
$value = $this->_attributes[$name] ?? NULL;
|
||||
|
||||
return $this->withPropertyOverride($name, $value);
|
||||
return $this->withPropertyOverride($name, $this->_attributes[$name]);
|
||||
}
|
||||
|
||||
if (isset($this->_oldAttributes[$name])) {
|
||||
$value = $this->_oldAttributes[$name] ?? NULL;
|
||||
|
||||
return $this->withPropertyOverride($name, $value);
|
||||
return $this->withPropertyOverride($name, $this->_oldAttributes[$name]);
|
||||
}
|
||||
|
||||
return parent::__get($name);
|
||||
|
||||
Reference in New Issue
Block a user