You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.
This is related to #482 - I bet that the problem is that your toArray() call ends in the attributesToArray() which says that translations relation is not loaded but he should do it on toArray - so he loads it. Super bad in your case.
Ideas to solve this are in the linked issue.
As a workaround you could do ->load('translations'). This will load all translations in a single query. If you don't want to load translations on toArray() call in general you can also disable this in the config file.
But I will think about a solution to get around this.
Hi,
I'm doing this to get all my countries translated.
It does 200+ queries. Does a query per country to get it's name.
It runs this query:
But then runs the same query
one for each country.
What am I doing wrong?
Thanks
The text was updated successfully, but these errors were encountered: