<?php

class SustainabilityTopic extends ContentTypeModel
{
    use LanguageSupportTrait;

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

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

    public function solutionsTestimonial()
    {
        return $this->belongsTo("Testimonial");
    }

    public function solutions()
    {
        return $this->belongsToMany("Solution", "solution_sustainability_topic");
    }
}
