Translation as JSON object instead of string when used with belongsTo relationship #468
Unanswered
afonsosantos
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
First of all, thank you for the work on this library.
We are using this library with Laravel 11, and recently discovered what seems like a bug when a translated model is fetched using belongsTo relationship.
We have a model CategoryRelation that is related to Category model. Now, this category model has a translatable field
description
.When fetched in a controller from the Laravel Eloquent ORM, this comes as:
(redacted for simplicity)
In all other places where translatable fields are fetched, the library does a great job fetching the correct value and returning it as a single string. This is the only situation where that does not ocurr.
Hope this was clear. In case any more information is needed, feel free to ask.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions