public function relatedByLanguageValues($values, $attribute = null)
    {
        return $this->anyLanguageValues($values, $attribute)->addOrderBy(new Expression('COUNT(*) DESC'));
    }
public function relatedByLanguageValues($values, $attribute = null)
    {
        return $this->anyLanguageValues($values, $attribute)->addOrderBy(new Expression('COUNT(*) DESC'));
    }
public function relatedByLanguageValues ( $ values , $ attribute = null ) { return $ this -> anyLanguageValues ( $ values , $ attribute ) -> addOrderBy ( new Expression ( 'COUNT(*) DESC' ) ) ; }
Gets entities related by languages.
@param string|string[] $values
@param string|null $attribute
@return \yii\db\ActiveQuery the owner
Gets entities related by languages .