Refactor document propagation and sync status hooks; deprecate CAkten hooks and implement new logic in CDokumente; update microtime values in config and state files
This commit is contained in:
@@ -48,7 +48,8 @@ class PropagateDocuments implements AfterRelate, AfterUnrelate
|
||||
// Set direct belongsTo relationship on document
|
||||
if ($advowareAkten) {
|
||||
$foreignEntity->set('cAktenId', $advowareAkten->getId());
|
||||
$foreignEntity->set('syncStatus', 'new'); // Mark as new for Advoware sync
|
||||
$foreignEntity->set('syncStatus', 'unclean'); // Advoware-Sync ausstehend
|
||||
$foreignEntity->set('aiSyncStatus', 'unclean'); // AI-Sync ausstehend
|
||||
$this->entityManager->saveEntity($foreignEntity, ['silent' => true, 'skipHooks' => true]);
|
||||
|
||||
// Akte über neue Verlinkung informieren → syncStatus auf unclean
|
||||
|
||||
Reference in New Issue
Block a user