mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
DbObject: allow to setBeingLoadedFromDb
This commit is contained in:
parent
40c2aaeb22
commit
a0253250c1
@ -681,12 +681,17 @@ abstract class DbObject
|
||||
}
|
||||
}
|
||||
|
||||
$this->setBeingLoadedFromDb();
|
||||
$this->onLoadFromDb();
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setBeingLoadedFromDb()
|
||||
{
|
||||
$this->loadedFromDb = true;
|
||||
$this->loadedProperties = $this->properties;
|
||||
$this->hasBeenModified = false;
|
||||
$this->modifiedProperties = array();
|
||||
$this->onLoadFromDb();
|
||||
return $this;
|
||||
$this->modifiedProperties = [];
|
||||
}
|
||||
|
||||
public function getOriginalProperties()
|
||||
|
Loading…
x
Reference in New Issue
Block a user