Issue: MorphToSelect with Translated Titles
I'm struggling to set up a MorphToSelect field for a polymorphic relationship where I need to display translated titles.
Here's my current setup:
Courses have translations in a separate table.
I can't get the translated title to display in the select field - I either get errors about undefined columns or the ID is displayed instead of the title.
How can I properly set this up to:
- Display the course title in the primary language.
- Allow searching based on translated titles.
- Correctly save the polymorphic relationship.
Any help is appreciated!
0 Replies