Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with Relation column #2720

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

zachgarwood
Copy link
Contributor

@zachgarwood zachgarwood commented Jan 30, 2025

Description

The Relation column does not properly display the value of fields on *-to-one related models. When collect() receives an individual object (such as an Eloquent model) it will convert it to a Collection. However, when Collection::wrap() receives an individual object it wraps it in a Collection, which is the desired behavior.

Related Issues

Fixes #2719
Fixes #2682

The Relation column does not properly display the value of fields on
*-to-one related models. When `collect()` receives an individual object
(such as an Eloquent model) it will convert it to an array. However, when
`Collection::wrap()` receives an individual object it wraps it in a `Collection`.
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.

Relation columns not displaying correctly Relation columns of *-to-one relationship not displayed correctly
1 participant