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 for one to one relation column in index table #2683

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

Conversation

iedex
Copy link
Contributor

@iedex iedex commented Oct 29, 2024

Description

Not sure if this is the best solution, but this way works for both relation types that I use (belongsTo and belongsToMany).
Before this change, collect($model->getRelation($this->relation)); for belongsToMany, and worked:
authors

but this for a belongsTo relation:
category
I had something like ", , , , , , , , , , ," on that column.

Related Issues

@alextepes
Copy link

This is related to #2682.
I have also submitted a similar merge request #2684 before noticing yours @iedex.

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