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

Consider link between submission and custom data model entries #24

Open
dave-mills opened this issue May 13, 2024 · 0 comments
Open

Consider link between submission and custom data model entries #24

dave-mills opened this issue May 13, 2024 · 0 comments
Assignees

Comments

@dave-mills
Copy link
Member

A submission() relationship on a data model might be hard to do, as it would ideally require the opposite relationship on the submission (only possible if the dev created a custom Submission model in the application).

...is that correct? The Spatie Tags package puts a morphToMany relationship on their HasTags trait, (here), and does not have a corresponding relationship on the Tag model itself (because they do not know what models will be used). So maybe we do something like that?

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

No branches or pull requests

2 participants