DbObject: reallySet should not risk magic lookups
This commit is contained in:
parent
507dd176cc
commit
c832ca4ade
|
@ -315,7 +315,7 @@ abstract class DbObject
|
||||||
|
|
||||||
protected function reallySet($key, $value)
|
protected function reallySet($key, $value)
|
||||||
{
|
{
|
||||||
if ($value === $this->$key) {
|
if ($value === $this->properties[$key]) {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
$this->hasBeenModified = true;
|
$this->hasBeenModified = true;
|
||||||
|
|
Loading…
Reference in New Issue