<?php

namespace App\Models\Backoffice;

use App\Models\Backoffice\Support\BaseModel;
use App\Models\Backoffice\Support\Collections\WOLanguageCollection;

class WebsiteObjectLanguage extends BaseModel
{
    protected $table = "website_objects_lang";
    public $timestamps = false;
    protected $primaryKey = 'wo_translation_id';
    protected $guarded = array();

    public function newCollection(array $models = [])
    {
        return new WOLanguageCollection($models);
    }

    public function websiteObject()
    {
        return $this->belongsTo(WebsiteObject::class, 'website_object_id', 'website_object_id');
    }
}
