Identifier.php 603 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace Sluggable\Fixture;
  3. use Gedmo\Mapping\Annotation as Gedmo;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity
  7. */
  8. class Identifier
  9. {
  10. /**
  11. * @ORM\Id
  12. * @Gedmo\Slug(separator="_", updatable=false, fields={"title"})
  13. * @ORM\Column(length=32, unique=true)
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(length=32)
  18. */
  19. private $title;
  20. public function getId()
  21. {
  22. return $this->id;
  23. }
  24. public function setTitle($title)
  25. {
  26. $this->title = $title;
  27. }
  28. public function getTitle()
  29. {
  30. return $this->title;
  31. }
  32. }