You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope this message finds you well. I am very excited and interested in enhancing the functionality of this package. I have been following the development of Eloquent Power Joins, and I am truly impressed by its ability to simplify and optimize complex database queries in Laravel.
Unfortunately, I am facing a problem where I can't perform a nested join in a MorphTo relationship.
The above code doesn't work. I understand that the morphable parameter can cause confusion when dealing with nested relationships. Therefore, I took the initiative to improve the joinRelationship() function to make it more flexible.
The above code works seamlessly. I would like to create a Pull Request based on this issue.
I am open to discussion if anyone has a better solution.
Thanks a lot.
The text was updated successfully, but these errors were encountered:
illusi03
added a commit
to illusi03/eloquent-power-joins
that referenced
this issue
Jan 27, 2025
Hmm, I do understand your issue, but I'm not sure I'm a big fan of yet another parameter without a lot of meaning. Wouldn't this be the case where morphable needs to work in nested relationships?
Dear Maintainers,
I hope this message finds you well. I am very excited and interested in enhancing the functionality of this package. I have been following the development of Eloquent Power Joins, and I am truly impressed by its ability to simplify and optimize complex database queries in Laravel.
Unfortunately, I am facing a problem where I can't perform a nested join in a MorphTo relationship.
For error nested example :
The above code doesn't work. I understand that the morphable parameter can cause confusion when dealing with nested relationships. Therefore, I took the initiative to improve the joinRelationship() function to make it more flexible.
Improved example :
The above code works seamlessly. I would like to create a Pull Request based on this issue.
I am open to discussion if anyone has a better solution.
Thanks a lot.
The text was updated successfully, but these errors were encountered: