From 84c26ff49421aea0ae09e8a3ac5a03fcd7c30952 Mon Sep 17 00:00:00 2001 From: Gustavo Freze Date: Wed, 21 Oct 2026 11:23:43 -0300 Subject: [PATCH 1/2] build: Raise tiny-blocks/building-blocks to ^6.0. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 16c4de8..a6118ea 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "php": "^8.5", "doctrine/dbal": "^4.4", "ramsey/uuid": "^4.9", - "tiny-blocks/building-blocks": "^5.3", + "tiny-blocks/building-blocks": "^6.0", "tiny-blocks/collection": "^2.6", "tiny-blocks/mapper": "^3.2" }, From 5b42a6b516b5656af4d05a3bc0cf379464984e96 Mon Sep 17 00:00:00 2001 From: Gustavo Freze Date: Wed, 21 Oct 2026 11:23:43 -0300 Subject: [PATCH 2/2] docs: Document where the occurred_at column takes its value from. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8d8a9b9..bd9989c 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,10 @@ CREATE TABLE outbox_events The library writes to `id`, `aggregate_id`, `aggregate_type`, `event_type`, `revision`, `aggregate_version`, `payload`, and `occurred_at`. It never writes to `created_at`. The database fills it automatically. +`occurred_at` is copied from the record's `occurredAt`, which `tiny-blocks/building-blocks` resolves from the explicit +argument to `EventRecord::from()`, then the event's own `occurredAt()`, then the current moment. The outbox never reads +the clock itself. + For aggregates whose identities are not UUID strings, use VARCHAR columns and configure `IdentityColumnType::STRING` (see [Customizing the table layout](#customizing-the-table-layout)):