mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
DbObject: introduce onClone() hook
This commit is contained in:
parent
de843b19ed
commit
bf596d98ee
@ -751,11 +751,16 @@ abstract class DbObject
|
|||||||
|
|
||||||
public function __clone()
|
public function __clone()
|
||||||
{
|
{
|
||||||
|
$this->onClone();
|
||||||
$this->autoincKeyName = null;
|
$this->autoincKeyName = null;
|
||||||
$this->loadedFromDb = false;
|
$this->loadedFromDb = false;
|
||||||
$this->hasBeenModified = true;
|
$this->hasBeenModified = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function onClone()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public static function create($properties, DbConnection $connection = null)
|
public static function create($properties, DbConnection $connection = null)
|
||||||
{
|
{
|
||||||
$class = get_called_class();
|
$class = get_called_class();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user