public function save()
{
$isUpdate = false;
if ($this->getId()) {
$isUpdate = true;
\Pimcore::getEventManager()->trigger("object.keyValue.groupConfig.preUpdate", $this);
} else {
\Pimcore::getEventManager()->trigger("object.keyValue.groupConfig.preAdd", $this);
}
$model = parent::save();
if ($isUpdate) {
\Pimcore::getEventManager()->trigger("object.keyValue.groupConfig.postUpdate", $this);
} else {
\Pimcore::getEventManager()->trigger("object.keyValue.groupConfig.postAdd", $this);
}
return $model;
}