N°4756 - Ease extensibility for CRUD operations : Event Service

This commit is contained in:
Eric Espie
2022-12-07 16:25:16 +01:00
parent bdebea62b6
commit c02f84969a
3 changed files with 5 additions and 10 deletions

View File

@@ -180,7 +180,7 @@ abstract class DBObject implements iDisplay
$this->m_bFullyLoaded = $this->IsFullyLoaded();
$this->m_aTouchedAtt = array();
$this->m_aModifiedAtt = array();
$this->m_sObjectUniqId = get_class($this).'::'.$this->GetKey().'_'.utils::GetUniqId();
$this->m_sObjectUniqId = get_class($this).'::'.$this->GetKey().'_'.uniqId('', true);
$this->RegisterEventListeners();
return;
}
@@ -203,7 +203,7 @@ abstract class DBObject implements iDisplay
$this->UpdateMetaAttributes();
$this->m_sObjectUniqId = get_class($this).'::0'.'_'.utils::GetUniqId();
$this->m_sObjectUniqId = get_class($this).'::0'.'_'.uniqId('', true);
$this->RegisterEventListeners();
}