<?php

namespace App\Model\Entities\Components\News;

use App\Model\Entities\BaseRecord;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="news_translation")
 */
class NewsTranslation extends BaseRecord
{
    /**
     * @ORM\Column(type="string")
     */
    protected $language;

    /**
     * @var News
     * @ORM\ManyToOne(targetEntity="News")
     */
    protected $news;

    /**
     * @ORM\Column(type="string")
     */
    protected $title;

    /**
     * @ORM\Column(type="string")
     */
    protected $description;

    /**
     * @ORM\Column(type="text")
     */
    protected $content;

    /**
     * @ORM\Column(type="datetime")
     */
    protected $publishedAt;

    /**
     * @ORM\Column(type="datetime")
     */
    protected $lastUpdated;
}