Skip to content

Conversation

@duncanmcclean
Copy link
Member

This PR attempts to fix an issue with the Eloquent Driver where an error would occur when updating entries in a search index.

We're plucking the reference from entries in the entries searchable here:

return $query->pluck('reference');

However, when entries are stored in the database, this results in an array of null values because reference isn't a "real" column in the database.

This PR adopts the fix suggested in statamic/eloquent-driver#531, where we use ResolveValues to resolve values in EloquentQueryBuilder::pluck(), allowing it to actually hit `Entry::reference().

Fixes statamic/eloquent-driver#531

@jasonvarga jasonvarga merged commit d8b5554 into 6.x Jan 29, 2026
11 checks passed
@jasonvarga jasonvarga deleted the eloquent-pluck branch January 29, 2026 18:23
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.

Undefined array key "" error on Statamic 6

3 participants