Skip to content
Discussion options

You must be logged in to vote

Your problem is that here the getAttributes() method is returning an integer.

It's not the problem with the amount of fields you're translating, but with the value you're getting from one of the fields in the array.

Since the problem happens when getting the translation, and since name works, I assume the problem is one of the other 3 fields, which is not returning an string, or the translation doesn't exist.

  • Start by removing one field at a time from the array to find which of them is causing the issue.
  • Once you had found it, check the column format in the database an make sure you get an string and confirm that you're not mutating the field by other means in the model.
  • If it still fail…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@mohjacksi
Comment options

@mohjacksi
Comment options

Comment options

You must be logged in to vote
3 replies
@mohjacksi
Comment options

@mohjacksi
Comment options

@anibalealvarezs
Comment options

Answer selected by mohjacksi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants