You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: normalize tenant to string to match database round-trip type
setTenant() accepts int|string|null but PDO returns tenant as a string
after storage. The strict !== comparisons in getCollection() then fail
because (int)1 !== "1", causing "Collection not found" errors. The
Sequence validator also rejects integer tenant values since $tenant
has type VAR_ID which requires strings.
Cast tenant to string in Adapter::setTenant(), Document::getTenant(),
and the tenantPerDocument document paths. Skip Sequence validation for
$tenant since it's a user-provided identifier, not a sequence-generated
ID.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments