Astrotomic / laravel-translatable

A Laravel package for multilingual models
https://docs.astrotomic.info/laravel-translatable/
MIT License
1.24k stars 156 forks source link

orderByTranslation gets ignored #318

Closed Konzeptcode closed 1 year ago

Konzeptcode commented 1 year ago

Hey guys, i have the problem that my orderByTranslation is getting ignored. I have the following:

    Cache::tags(['food', 'food-products'])->rememberForever('non-empty-products', function () {
        return Product::orderByTranslation('name', 'asc')->with(['places', 'brands', 'translations', 'product_images'])->withCount(['places', 'brands', 'translations', 'product_images'])->having('places_count', '>', 0)->orHaving('brands_count', '>', 0)->get();
    });

Do you have an idea what cause it can have?

Greets Talha

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days

Konzeptcode commented 1 year ago

Up!

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days