<?php

class Block extends ContentTypeModel{
    use LanguageSupportTrait;

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

    public function entry()
    {
        return $this->belongsToMany("Entry");
    }

    public function gallery() {
        return $this->belongsToMany("MediaItem");
    }

    public function highResolutionImage() {
        return $this->belongsTo("MediaItem");
    }

    public function squareImage() {
        return $this->belongsTo("MediaItem");
    }

    public function squareImageAux() {
        return $this->belongsTo("MediaItem");
    }

    public function squareGrid(){
        return $this->belongsToMany("SquareGridItem");
    }

    public function liveshowList(){
        return $this->belongsToMany("LiveshowItem");
    }
}
