eee
This commit is contained in:
+6
-1
@@ -736,7 +736,12 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
|
||||
return $this->withPropertyOverride($name, $this->_oldAttributes[$name]);
|
||||
}
|
||||
|
||||
return parent::__get($name);
|
||||
|
||||
if (!method_exists($this, 'get' . ucfirst($name))) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return $this->{'get' . ucfirst($name)}();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user