TemplatedArticle.php 604 B

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