/** * Safety net: in case the change is not given, let's guarantee that it will * be set to the current ongoing change (or create a new one) */ protected function OnInsert() { if ($this->Get('change') <= 0) { $this->Set('change', CMDBObject::GetCurrentChange()); } parent::OnInsert(); }
protected function OnInsert() { $this->TraceToText(); parent::OnInsert(); }