diff --git a/datamodels/2.x/itop-change-mgmt-itil/datamodel.itop-change-mgmt-itil.xml b/datamodels/2.x/itop-change-mgmt-itil/datamodel.itop-change-mgmt-itil.xml
index 559316f6e2..ecfb88db08 100755
--- a/datamodels/2.x/itop-change-mgmt-itil/datamodel.itop-change-mgmt-itil.xml
+++ b/datamodels/2.x/itop-change-mgmt-itil/datamodel.itop-change-mgmt-itil.xml
@@ -975,18 +975,6 @@
-
-
- EVENT_SERVICE_DB_INSERT_REQUESTED
- OnChangeInsertRequested
- 0
-
-
- EVENT_SERVICE_DB_UPDATE_REQUESTED
- OnChangeUpdateRequested
- 0
-
-
true
@@ -1027,26 +1015,28 @@
return true;
}]]>
-
+
false
- public
- Overload-ExNihilo
+ protected
+ Overload-DBObject
UpdateImpactedItems();
$this->SetIfNull('creation_date', time());
$this->SetIfNull('last_update', time());
}]]>
-
+
false
- public
- Overload-ExNihilo
+ protected
+ Overload-DBObject
ListChanges();
if (array_key_exists('functionalcis_list', $aChanges))
{
diff --git a/datamodels/2.x/itop-change-mgmt/datamodel.itop-change-mgmt.xml b/datamodels/2.x/itop-change-mgmt/datamodel.itop-change-mgmt.xml
index fd595937b9..29d80c634f 100755
--- a/datamodels/2.x/itop-change-mgmt/datamodel.itop-change-mgmt.xml
+++ b/datamodels/2.x/itop-change-mgmt/datamodel.itop-change-mgmt.xml
@@ -512,18 +512,6 @@
-
-
- EVENT_SERVICE_DB_INSERT_REQUESTED
- OnChangeInsertRequested
- 0
-
-
- EVENT_SERVICE_DB_UPDATE_REQUESTED
- OnChangeUpdateRequested
- 0
-
-
true
@@ -578,25 +566,27 @@
return true;
}]]>
-
+
false
- public
- Overload-ExNihilo
+ protected
+ Overload-DBObject
UpdateImpactedItems();
$this->SetIfNull('creation_date', time());
$this->SetIfNull('last_update', time());
}]]>
-
+
false
- public
- Overload-ExNihilo
+ protected
+ Overload-DBObject
ListChanges();
if (array_key_exists('functionalcis_list', $aChanges))
{
diff --git a/datamodels/2.x/itop-incident-mgmt-itil/datamodel.itop-incident-mgmt-itil.xml b/datamodels/2.x/itop-incident-mgmt-itil/datamodel.itop-incident-mgmt-itil.xml
index 0e79ccc0be..8382cc49fc 100755
--- a/datamodels/2.x/itop-incident-mgmt-itil/datamodel.itop-incident-mgmt-itil.xml
+++ b/datamodels/2.x/itop-incident-mgmt-itil/datamodel.itop-incident-mgmt-itil.xml
@@ -1052,28 +1052,6 @@
-
-
- EVENT_SERVICE_DB_INSERT_REQUESTED
- OnIncidentInsertRequested
- 0
-
-
- EVENT_SERVICE_DB_UPDATE_REQUESTED
- OnIncidentUpdateRequested
- 0
-
-
- EVENT_SERVICE_DB_COMPUTE_VALUES
- OnIncidentComputeValues
- 0
-
-
- EVENT_SERVICE_DB_CHECK_TO_WRITE
- OnIncidentCheckToWrite
- 0
-
-
true
@@ -1144,12 +1122,13 @@
return true;
}]]>
-
+
false
public
- Overload-ExNihilo
- Overload-DBObject
+ IsNew() && ($this->Get('parent_incident_id') == $this->GetKey()))
{
$this->m_aCheckIssues[] = Dict::Format('Class:Incident/Error:CannotAssignParentIncidentIdToSelf');
@@ -1198,15 +1177,17 @@
return $iPriority;
}]]>
-
+
false
public
- Overload-ExNihilo
- Overload-DBObject
+ Set('priority', $this->ComputePriority());
+
+ return parent::ComputeValues();
}]]>
@@ -1484,24 +1465,26 @@
$this->UpdateImpactedItems();
}]]>
-
+
false
- public
- Overload-ExNihilo
- protected
+ Overload-DBObject
+ ComputeImpactedItems();
$this->SetIfNull('last_update', time());
$this->SetIfNull('start_date', time());
}]]>
-
+
false
- public
- Overload-ExNihilo
- protected
+ Overload-DBObject
+ ListChanges();
if (array_key_exists('functionalcis_list', $aChanges))
{
diff --git a/datamodels/2.x/itop-problem-mgmt/datamodel.itop-problem-mgmt.xml b/datamodels/2.x/itop-problem-mgmt/datamodel.itop-problem-mgmt.xml
index c97b9b6009..7ee74c6f88 100755
--- a/datamodels/2.x/itop-problem-mgmt/datamodel.itop-problem-mgmt.xml
+++ b/datamodels/2.x/itop-problem-mgmt/datamodel.itop-problem-mgmt.xml
@@ -423,23 +423,6 @@
-
-
- EVENT_SERVICE_DB_INSERT_REQUESTED
- OnProblemInsertRequested
- 0
-
-
- EVENT_SERVICE_DB_UPDATE_REQUESTED
- OnProblemUpdateRequested
- 0
-
-
- EVENT_SERVICE_DB_COMPUTE_VALUES
- OnProblemComputeValues
- 0
-
-
true
@@ -537,31 +520,31 @@
return $iPriority;
}]]>
-
+
false
public
- Overload-ExNihilo
- Overload-DBObject
+ Set('priority', $this->ComputePriority());
}]]>
-
+
false
- public
- Overload-ExNihilo
- protected
+ Overload-DBObject
+ SetIfNull('start_date', time());
$this->SetIfNull('last_update', time());
}]]>
-
+
false
- public
- Overload-ExNihilo
- protected
+ Overload-DBObject
+ Set('last_update', time());
}]]>
diff --git a/datamodels/2.x/itop-request-mgmt-itil/datamodel.itop-request-mgmt-itil.xml b/datamodels/2.x/itop-request-mgmt-itil/datamodel.itop-request-mgmt-itil.xml
index 79138568e6..efd89f7958 100755
--- a/datamodels/2.x/itop-request-mgmt-itil/datamodel.itop-request-mgmt-itil.xml
+++ b/datamodels/2.x/itop-request-mgmt-itil/datamodel.itop-request-mgmt-itil.xml
@@ -1198,28 +1198,6 @@
-
-
- EVENT_SERVICE_DB_INSERT_REQUESTED
- OnUserRequestInsertRequested
- 0
-
-
- EVENT_SERVICE_DB_UPDATE_REQUESTED
- OnUserRequestUpdateRequested
- 0
-
-
- EVENT_SERVICE_DB_COMPUTE_VALUES
- OnUserRequestComputeValues
- 0
-
-
- EVENT_SERVICE_DB_CHECK_TO_WRITE
- OnUserRequestCheckToWrite
- 0
-
-
true
@@ -1304,12 +1282,13 @@
return true;
}]]>
-
+
false
public
- Overload-ExNihilo
- Overload-DBObject
+ IsNew() && ($this->Get('parent_request_id') == $this->GetKey()))
{
$this->m_aCheckIssues[] = Dict::Format('Class:UserRequest/Error:CannotAssignParentRequestIdToSelf');
@@ -1358,14 +1337,16 @@
return $iPriority;
}]]>
-
+
false
public
- Overload-ExNihilo
- Overload-DBObject
+ Set('priority', $this->ComputePriority());
+
+ return parent::ComputeValues();
}]]>
@@ -1555,25 +1536,27 @@
$this->UpdateImpactedItems();
}]]>
-
+
false
- public
- Overload-ExNihilo
+ protected
+ Overload-DBObject
ComputeImpactedItems();
$this->SetIfNull('last_update', time());
$this->SetIfNull('start_date', time());
}]]>
-
+
false
- public
- Overload-ExNihilo
+ protected
+ Overload-DBObject
ListChanges();
if (array_key_exists('functionalcis_list', $aChanges))
{
diff --git a/datamodels/2.x/itop-request-mgmt/datamodel.itop-request-mgmt.xml b/datamodels/2.x/itop-request-mgmt/datamodel.itop-request-mgmt.xml
index b99a9930d2..fef4e827b1 100755
--- a/datamodels/2.x/itop-request-mgmt/datamodel.itop-request-mgmt.xml
+++ b/datamodels/2.x/itop-request-mgmt/datamodel.itop-request-mgmt.xml
@@ -1231,28 +1231,6 @@
-
-
- EVENT_SERVICE_DB_INSERT_REQUESTED
- OnUserRequestInsertRequested
- 0
-
-
- EVENT_SERVICE_DB_UPDATE_REQUESTED
- OnUserRequestUpdateRequested
- 0
-
-
- EVENT_SERVICE_DB_COMPUTE_VALUES
- OnUserRequestComputeValues
- 0
-
-
- EVENT_SERVICE_DB_CHECK_TO_WRITE
- OnUserRequestCheckToWrite
- 0
-
-
true
@@ -1337,12 +1315,13 @@
return true;
}]]>
-
+
false
public
- Overload-ExNihilo
- Overload-DBObject
+ IsNew() && ($this->Get('parent_request_id') == $this->GetKey()))
{
$this->m_aCheckIssues[] = Dict::Format('Class:UserRequest/Error:CannotAssignParentRequestIdToSelf');
@@ -1392,11 +1371,11 @@
return $iPriority;
}]]>
-
+
false
public
- Overload-ExNihilo
- Overload-DBObject
+ Set('priority', $this->ComputePriority());
@@ -1412,6 +1391,8 @@
$this->Set('request_type', $sType);
}
}
+
+ return parent::ComputeValues();
}]]>
@@ -1601,26 +1582,28 @@
$this->UpdateImpactedItems();
}]]>
-
+
false
- public
- Overload-ExNihilo
+ protected
+ Overload-DBObject
ComputeImpactedItems();
$this->SetIfNull('last_update', time());
$this->SetIfNull('start_date', time());
}]]>
-
+
false
- public
- Overload-ExNihilo
+ protected
+ Overload-DBObject
ListChanges();
if (array_key_exists('functionalcis_list', $aChanges))
{
diff --git a/datamodels/2.x/itop-service-mgmt-provider/datamodel.itop-service-mgmt-provider.xml b/datamodels/2.x/itop-service-mgmt-provider/datamodel.itop-service-mgmt-provider.xml
index b6e5ae7286..5db8cfe350 100755
--- a/datamodels/2.x/itop-service-mgmt-provider/datamodel.itop-service-mgmt-provider.xml
+++ b/datamodels/2.x/itop-service-mgmt-provider/datamodel.itop-service-mgmt-provider.xml
@@ -1597,20 +1597,15 @@ public function PrefillSearchForm(&$aContextParam)
true
-
-
- EVENT_SERVICE_DB_CHECK_TO_WRITE
- OnSLACheckToWrite
- 0
-
-
-
+
false
public
Get("customercontracts_list");
foreach ($aCustomerContracts as $sAttCode => $oCustomerContracts)
{
diff --git a/datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml b/datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml
index 49d89724d9..fad83db620 100755
--- a/datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml
+++ b/datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml
@@ -216,24 +216,19 @@
0
-
-
- EVENT_SERVICE_DB_INSERT_REQUESTED
- OnTicketInsertRequested
- -10
-
-
-
+
false
public
- Overload-ExNihilo
+ Overload-DBObject
MakeTicketRef($iNextId);
$this->SetIfNull('ref', $sRef);
+ $iKey = parent::DBInsertNoReload();
+ return $iKey;
}
]]>