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

Call to undefined method October\Rain\Database\Relations\AttachMany::getRelatedKeyName() #5790

Closed
wpluut opened this issue Mar 6, 2024 · 1 comment

Comments

@wpluut
Copy link

wpluut commented Mar 6, 2024

I have a model with an attachMany relation:

public $attachMany = [ 'attachments' => File::class ];

When adding an attachment and saving the model, I'm getting this error:

Call to undefined method October\Rain\Database\Relations\AttachMany::getRelatedKeyName()

The method getRelatedKeyName seems missing.

I am running OctoberCMS v3.6.7

@daftspunk
Copy link
Member

Thanks for finding this!

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

No branches or pull requests

2 participants