function getCategory($id){
        if(is_numeric($id))
            $model=self::where('id',$id)->select();
        else
            $model=self::where('slug',$id)->select();

        $model->where('model_type',$this->modelType);

        return $model->first();
    }