Translation.php 934 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace Gedmo\Translator\Entity;
  3. use Gedmo\Translator\Translation as BaseTranslation;
  4. use Doctrine\ORM\Mapping\Column;
  5. use Doctrine\ORM\Mapping\MappedSuperclass;
  6. use Doctrine\ORM\Mapping\Id;
  7. use Doctrine\ORM\Mapping\GeneratedValue;
  8. /**
  9. * @MappedSuperclass
  10. */
  11. abstract class Translation extends BaseTranslation
  12. {
  13. /**
  14. * @var integer $id
  15. *
  16. * @Column(type="integer")
  17. * @Id
  18. * @GeneratedValue
  19. */
  20. protected $id;
  21. /**
  22. * @var string $locale
  23. *
  24. * @Column(type="string", length=8)
  25. */
  26. protected $locale;
  27. /**
  28. * @var string $property
  29. *
  30. * @Column(type="string", length=32)
  31. */
  32. protected $property;
  33. /**
  34. * @var text $value
  35. *
  36. * @Column(type="text", nullable=true)
  37. */
  38. protected $value;
  39. /**
  40. * Get id
  41. *
  42. * @return integer $id
  43. */
  44. public function getId()
  45. {
  46. return $this->id;
  47. }
  48. }