refactor: use unified provider desing

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-06-20 20:31:17 -04:00
parent a3f2fa0101
commit d7c35a5d49
6 changed files with 271 additions and 170 deletions
+6 -3
View File
@@ -257,7 +257,8 @@ class Store {
['tid' => $tenantId, 'uid' => $userId, 'cid' => $cid],
['$set' => $data]
);
return $entity;
// return the canonical post-update collection so provider/service and full state are populated
return $this->collectionFetch($tenantId, $userId, (string) $cid) ?? $entity;
}
/**
@@ -501,8 +502,10 @@ class Store {
// Chronicle the modification (operation 2)
$this->chronicleDocument($tenantId, $collectionId, $identifier, 2);
}
return $entity;
// return the canonical post-update entity so provider/service and full state are populated
$entries = $this->entityFetch($tenantId, $userId, $collectionId, $identifier);
return $entries[$identifier] ?? $entity;
}
/**