Commit 87a32dd
(fix): always call castingAfter in createDocument regardless of relationship hook
castingAfter was only called when a Relationships hook was registered,
but it's needed unconditionally to convert adapter-specific types (like
MongoDB UTCDateTime) to PHP types. Without it, BSON objects leak into
document responses.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a32778b commit 87a32dd
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | | - | |
| 440 | + | |
441 | 441 | | |
442 | 442 | | |
| 443 | + | |
443 | 444 | | |
444 | 445 | | |
445 | 446 | | |
| |||
0 commit comments