Skip to content

Conversation

@duncanmcclean
Copy link
Member

This pull request fixes an issue introduced by #738, where models aren't augmented correctly on Runway routes.

This PR fixes it by passing the RoutingModel instance to the ResourceResponse (and therefore the cascade), which gets around an issue in Cascade::hydrateContent() where it would call ->toArray() on the model because it doesn't implement the Augmentable interface.

Closes #732.

@duncanmcclean duncanmcclean merged commit 5c5c753 into 8.x Nov 5, 2025
35 checks passed
@duncanmcclean duncanmcclean deleted the fix-augmentation-on-route branch November 5, 2025 14:10
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Released as part of v8.7.1.

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.

Object of class Statamic\Fields\Value could not be converted to int

2 participants