Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

getAttributeOrFallback calls fallback-locale with fallback enabled #467

Closed
Gummibeer opened this issue May 14, 2018 · 0 comments
Closed

Comments

@Gummibeer
Copy link
Collaborator

The getAttributeOrFallback method calls the getTranslation method with the fallback-locale and fallback enabled. This is useless and possibly causes two queries to don't find anything.
https://github.com/dimsav/laravel-translatable/blob/master/src/Translatable/Translatable.php#L170

Using the fallback-locale is enough.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant