mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-25 23:04:53 +02:00
Icinga/DbObject: explizit destruction
This commit is contained in:
parent
ac6464c5e4
commit
88ffc6baf2
@ -966,4 +966,10 @@ abstract class DbObject
|
|||||||
$obj->setConnection($connection)->setKey($id);
|
$obj->setConnection($connection)->setKey($id);
|
||||||
return $obj->existsInDb();
|
return $obj->existsInDb();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function __destruct()
|
||||||
|
{
|
||||||
|
unset($this->db);
|
||||||
|
unset($this->connection);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1125,4 +1125,17 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function __destruct()
|
||||||
|
{
|
||||||
|
unset($this->resolveCache);
|
||||||
|
unset($this->vars);
|
||||||
|
unset($this->groups);
|
||||||
|
unset($this->imports);
|
||||||
|
unset($this->ranges);
|
||||||
|
unset($this->arguments);
|
||||||
|
|
||||||
|
|
||||||
|
parent::__destruct();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user