Skip to content

[6.x] Fix global variable references not resolving through the data repository#14938

Open
lazerg wants to merge 1 commit into
statamic:6.xfrom
lazerg:fix-globals-reference-resolution
Open

[6.x] Fix global variable references not resolving through the data repository#14938
lazerg wants to merge 1 commit into
statamic:6.xfrom
lazerg:fix-globals-reference-resolution

Conversation

@lazerg

@lazerg lazerg commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Global variable references use a globals:: prefix, but only the singular global repository was registered, so the reference fell through and got tried against every repository including entries, which throws an invalid ID error on database drivers (for example when adding a set to a Replicator inside a global set). This registers the globals prefix against the global variables repository so the reference resolves correctly.

Fixes statamic/eloquent-driver#537

@grantholle

Copy link
Copy Markdown
Contributor

Is this all it needs 😭

I've been unable to upgrade to Laravel 13 because of this, since I haven't been able to upgrade to v6...

@lazerg

lazerg commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Yep, that's the whole fix. @jasonvarga mind taking a look when you get a chance - would be great to get this in so folks aren't blocked on the v6 upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Eloquent v6 migration: invalid input syntax for type uuid

2 participants