lib/models/ObjectFamiliarity.php
public static function familiarObjects($model, $limit = 10)
    {
        $queryModel = new $model();
        $query = $model::find();
        $query->with(['familiarity']);

        if (!is_null($limit)) {
            $query->limit = $limit;
        }
        $query->orderBy = ['familiarity.familiarity' => SORT_DESC, 'familiarity.last_accessed' => SORT_DESC];

        return $query->all();
    }
public static function familiarObjects($model, $limit = 10)
    {
        $queryModel = new $model();
        $query = $model::find();
        $query->with(['familiarity']);

        if (!is_null($limit)) {
            $query->limit = $limit;
        }
        $query->orderBy = ['familiarity.familiarity' => SORT_DESC, 'familiarity.last_accessed' => SORT_DESC];

        return $query->all();
    }
[[@doctodo method_description:familiarObjects]].

@param [[@doctodo param_type:model]] $model [[@doctodo param_description:model]]
@param integer                       $limit [[@doctodo param_description:limit]] [optional]

@return [[@doctodo return_type:familiarObjects]] [[@doctodo return_description:familiarObjects]]