DbObject: reset modified properties when loaded

This commit is contained in:
Thomas Gelf 2016-05-25 08:16:41 +02:00
parent 1ee81fe498
commit a17e0eeb23
1 changed files with 1 additions and 0 deletions

View File

@ -616,6 +616,7 @@ abstract class DbObject
$this->loadedFromDb = true;
$this->loadedProperties = $this->properties;
$this->hasBeenModified = false;
$this->modifiedProperties = array();
$this->onLoadFromDb();
return $this;
}