public function delete()
{
\Pimcore::getEventManager()->trigger("object.keyValue.keyConfig.preDelete", $this);
if ($this->getId()) {
unset(self::$cache[$this->getId()]);
}
parent::delete();
\Pimcore::getEventManager()->trigger("object.keyValue.keyConfig.postDelete", $this);
}