Skip to content

Conversation

@jasonvarga
Copy link
Member

When you had a Page instance, doing $page->collection (or $page->toArray()['collection']) it would be the underlying entry's collection, as expected.
But when doing $page->collection(), it would get the mounted collection.

This PR adds mountedCollection() to be explicit.
In v6 collection() will return the underlying entry's collection to be consistent with $page->collection.

@jasonvarga jasonvarga merged commit 7b47cce into 5.x Dec 4, 2025
26 checks passed
@jasonvarga jasonvarga deleted the findbymount branch December 4, 2025 20:39
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.

2 participants