-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
MorphToMany relationships not displaying in front end. #412
Comments
Submitted a PR that resolves the issue when relationships is not defined for the resource in runway.php
The docs say to devine eager loaded relationships with the key 'relationships'
There are still refrences to 'with' in files RunwayTag.php, RunwayTagTest.php and BaseFieldtype.php |
Hey 👋 Sorry for not getting back to you regarding this issue. I looked at it briefly last week but kept running into issues getting your example running (not related to your issue) so I moved onto something else and didn't end up looping back to it until now. Thanks for your PR - I've merged it and it's part of v6.0.5. Also, on the back of your comment regarding the |
Thanks for the note. I understand that the morph relations are lacking support, but I am using them as read only for now. I just noticed a similar error with MorphTo and will be submitting a PR for that shortly. Great package by the way! |
Description
In runway v5, I was working with MorphToMany relationships and the front and back ends displayed correctly.
In v6, I am not unable to loop over the relationship on the front end despite the backend displaying correctly.
Error in log:
Displays fine on backend

Display on frontend
Steps to reproduce
runway.php
City Model
City blueprint
Title Model
Title blueprint
Environment
Environment
Application Name: App_name
Laravel Version: 10.42.0
PHP Version: 8.2.14
Composer Version: 2.6.6
Environment: local
Debug Mode: ENABLED
URL: app_name.test
Maintenance Mode: OFF
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: statamic
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file
Statamic
Addons: 1
Antlers: runtime
Stache Watcher: Enabled
Static Caching: Disabled
Version: 4.45.0 PRO
Statamic Addons
statamic-rad-pack/runway: 6.0.4
The text was updated successfully, but these errors were encountered: