Person.php 675 B

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