Commit ac7da4f
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() and in the
tenantPerDocument document paths where tenant is set directly on
the document.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent bab244a commit ac7da4f
2 files changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5503 | 5503 | | |
5504 | 5504 | | |
5505 | 5505 | | |
| 5506 | + | |
5506 | 5507 | | |
5507 | 5508 | | |
5508 | | - | |
| 5509 | + | |
5509 | 5510 | | |
5510 | 5511 | | |
5511 | 5512 | | |
| 5513 | + | |
| 5514 | + | |
| 5515 | + | |
5512 | 5516 | | |
5513 | 5517 | | |
5514 | 5518 | | |
| |||
5621 | 5625 | | |
5622 | 5626 | | |
5623 | 5627 | | |
5624 | | - | |
| 5628 | + | |
| 5629 | + | |
5625 | 5630 | | |
5626 | 5631 | | |
| 5632 | + | |
5627 | 5633 | | |
5628 | 5634 | | |
5629 | 5635 | | |
| |||
7198 | 7204 | | |
7199 | 7205 | | |
7200 | 7206 | | |
7201 | | - | |
| 7207 | + | |
| 7208 | + | |
7202 | 7209 | | |
7203 | 7210 | | |
| 7211 | + | |
7204 | 7212 | | |
7205 | 7213 | | |
7206 | 7214 | | |
| |||
0 commit comments