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

Relate two enum types #176

Open
xTermy opened this issue Jun 28, 2024 · 1 comment · May be fixed by #183
Open

Relate two enum types #176

xTermy opened this issue Jun 28, 2024 · 1 comment · May be fixed by #183

Comments

@xTermy
Copy link

xTermy commented Jun 28, 2024

While trying to get relation BelongsTo which foreign keys are casted to Enum cause this error:

"message": "Object of class CatalogEnum could not be converted to string",
"exception": "Error",
"file": "/var/www/html/vendor/awobaz/compoships/src/Database/Eloquent/Relations/BelongsTo.php",
"line": 240,

Please help me.

@phingoc1
Copy link

Can you show us the model and enum code?

@KentarouTakeda KentarouTakeda linked a pull request Jan 4, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants