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:
2026-03-27 10:31:12 +01:00
parent 2a18e62528
commit fa3c92379f
8 changed files with 325 additions and 134 deletions

View File

@@ -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