Astrotomic / laravel-translatable

A Laravel package for multilingual models

Home Page:https://docs.astrotomic.info/laravel-translatable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

orderByTranslation gets ignored

Konzeptcode opened this issue · comments

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

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

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