mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 11:19:16 +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->loadedFromDb = true;
|
||||||
$this->loadedProperties = $this->properties;
|
$this->loadedProperties = $this->properties;
|
||||||
$this->hasBeenModified = false;
|
$this->hasBeenModified = false;
|
||||||
$this->modifiedProperties = array();
|
$this->modifiedProperties = [];
|
||||||
$this->onLoadFromDb();
|
|
||||||
return $this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getOriginalProperties()
|
public function getOriginalProperties()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user