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

Doesn't work with polymorphic has_one #133

Open
GuySartorelli opened this issue Dec 5, 2023 · 0 comments
Open

Doesn't work with polymorphic has_one #133

GuySartorelli opened this issue Dec 5, 2023 · 0 comments

Comments

@GuySartorelli
Copy link
Member

GuySartorelli commented Dec 5, 2023

The LinkField formfield currently won't save the classname for a polymorphic has_one relation.

The Link model's Owner() method also doesn't account for an owner which has a polymorphic has_one relation - it needs to check that the "{$this->OwnerRelation}Class" field is a link class, and return null if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant