RoleMember/PermissionMember.member_id is a polymorphic varchar(36) holding either a UUID (HasUuids host models) or a stringified bigint (auto-increment host models). Without a string cast, a bigint member key binds as an INTEGER and MySQL coerces the whole varchar column to DOUBLE to compare, throwing 'Truncated incorrect DOUBLE value: <uuid>' (1292) the moment a UUID-keyed member shares the same role/permission. Casting member_id to string binds it as a string in every attach/detach/where. Package suite 162 green. |
||
|---|---|---|
| .vscode | ||
| config | ||
| database/migrations | ||
| src | ||
| tests/Unit | ||
| .dockerignore | ||
| .gitattributes | ||
| .gitignore | ||
| README.md | ||
| composer.json | ||
| phpunit.xml | ||
| pint.json | ||