Article.php 868 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace Translatable\Fixture\Issue138;
  3. use Gedmo\Mapping\Annotation as Gedmo;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity
  7. */
  8. class Article
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @Gedmo\Translatable
  18. * @ORM\Column(length=128)
  19. */
  20. private $title;
  21. /**
  22. * @Gedmo\Translatable
  23. * @ORM\Column(length=128)
  24. */
  25. private $titleTest;
  26. public function getId()
  27. {
  28. return $this->id;
  29. }
  30. public function setTitle($title)
  31. {
  32. $this->title = $title;
  33. }
  34. public function getTitle()
  35. {
  36. return $this->title;
  37. }
  38. public function setTitleTest($titleTest)
  39. {
  40. $this->titleTest = $titleTest;
  41. }
  42. public function getTitleTest()
  43. {
  44. return $this->titleTest;
  45. }
  46. }