We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a model has a morphMap alias (see docs), approving the Approval results in the error Error: Class "model_name" not found.
Error: Class "model_name" not found.
When creating the class, Relation::getMorphedModel($approvalable_type) should be called instead of directly instancing the database table value.
Relation::getMorphedModel($approvalable_type)
The text was updated successfully, but these errors were encountered:
Thanks for bringing this to my attention.
I'll take a look at it later but also open to a PR to help out.
Sorry, something went wrong.
Thanks again for the heads up!
cjmellor
Successfully merging a pull request may close this issue.
When a model has a morphMap alias (see docs), approving the Approval results in the error
Error: Class "model_name" not found.
When creating the class,
Relation::getMorphedModel($approvalable_type)
should be called instead of directly instancing the database table value.The text was updated successfully, but these errors were encountered: