src/Models/Repository/CategoryRepository.php
public function findTranslated($category, $languageId)
    {
        return CategoryTranslation::whereCategoryId($category->id)
            ->whereLanguageId($languageId)
            ->first();
    }
public function findTranslated($category, $languageId)
    {
        return CategoryTranslation::whereCategoryId($category->id)
            ->whereLanguageId($languageId)
            ->first();
    }
public function findTranslated ( $ category , $ languageId ) { return CategoryTranslation :: whereCategoryId ( $ category -> id ) -> whereLanguageId ( $ languageId ) -> first ( ) ; }
Find an Translated Category by given CategoryModel and Language Id
@param \AvoRed\Framework\Models\Database\Category $id
@param integer $languageId
@return \AvoRed\Framework\Models\Database\CategoryTranslation
Find an Translated Category by given CategoryModel and Language Id