<?php

class QuestionAnswerBlock extends ContentTypeModel{
  use LanguageSupportTrait;

  protected $hidden = array('languages', "websites");
  protected $with = array("languages", "websites");

    public function entries()
    {
        return $this->belongsToMany('Entry', 'entry_question_answer_block')->withPivot('position');
    }

    public function questionsAnswers(){
        return $this->hasMany('QuestionAnswer', 'qa_block_id');
    }

}
