<?php

class Story extends ContentTypeModel{
    use LanguageSupportTrait;

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

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

    public function blocks(){
        return $this->belongsToMany("Block");
    }

    public function occurrence()
    {
        return $this->belongsToMany("Occurrence");
    }
}
