File.php 613 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace Translatable\Fixture\Issue75;
  3. use Gedmo\Mapping\Annotation as Gedmo;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity
  7. */
  8. class File
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @Gedmo\Translatable
  18. * @ORM\Column(name="title", type="string", length=128)
  19. */
  20. private $title;
  21. public function getId()
  22. {
  23. return $this->id;
  24. }
  25. public function setTitle($title)
  26. {
  27. $this->title = $title;
  28. }
  29. public function getTitle()
  30. {
  31. return $this->title;
  32. }
  33. }