<?php
/**
* Base Locale
*
* @author Vincent van Waasbergen <v.vanwaasbergen@visualmedia.nl>
*/
namespace VisualMedia\TranslationBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use VisualMedia\LisaBundle\Component\Interfaces\EntityInterface;
use VisualMedia\LisaBundle\Traits\AutoIdTrait;
use VisualMedia\TranslationBundle\Model\BaseLocaleModel;
/**
* Base locale
*
* @ORM\Entity(repositoryClass="VisualMedia\TranslationBundle\Manager\BaseLocaleManager")
* @ORM\Table(name="locale")
*
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="discriminator", type="string")
*/
class BaseLocale extends BaseLocaleModel implements EntityInterface
{
use AutoIdTrait;
/**
* @ORM\Column(name="code", type="string", length=16, nullable=false)
*/
public $code;
/**
* @ORM\Column(name="language_code", type="string", length=3, nullable=false)
*/
public $languageCode;
/**
* @ORM\Column(name="country_code", type="string", length=3, nullable=false)
*/
public $countryCode;
/**
* @ORM\ManyToMany(targetEntity="VisualMedia\TranslationBundle\Entity\BaseDomain", mappedBy="locales")
*/
public $domains;
}