lib/composer/TranslationBundle/src/VisualMedia/TranslationBundle/Entity/BaseLocale.php line 26

Open in your IDE?
  1. <?php
  2. /**
  3. * Base Locale
  4. *
  5. * @author Vincent van Waasbergen <v.vanwaasbergen@visualmedia.nl>
  6. */
  7. namespace VisualMedia\TranslationBundle\Entity;
  8. use Doctrine\Common\Collections\ArrayCollection;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use VisualMedia\LisaBundle\Component\Interfaces\EntityInterface;
  11. use VisualMedia\LisaBundle\Traits\AutoIdTrait;
  12. use VisualMedia\TranslationBundle\Model\BaseLocaleModel;
  13. /**
  14. * Base locale
  15. *
  16. * @ORM\Entity(repositoryClass="VisualMedia\TranslationBundle\Manager\BaseLocaleManager")
  17. * @ORM\Table(name="locale")
  18. *
  19. * @ORM\InheritanceType("SINGLE_TABLE")
  20. * @ORM\DiscriminatorColumn(name="discriminator", type="string")
  21. */
  22. class BaseLocale extends BaseLocaleModel implements EntityInterface
  23. {
  24. use AutoIdTrait;
  25. /**
  26. * @ORM\Column(name="code", type="string", length=16, nullable=false)
  27. */
  28. public $code;
  29. /**
  30. * @ORM\Column(name="language_code", type="string", length=3, nullable=false)
  31. */
  32. public $languageCode;
  33. /**
  34. * @ORM\Column(name="country_code", type="string", length=3, nullable=false)
  35. */
  36. public $countryCode;
  37. /**
  38. * @ORM\ManyToMany(targetEntity="VisualMedia\TranslationBundle\Entity\BaseDomain", mappedBy="locales")
  39. */
  40. public $domains;
  41. }