Position.php 757 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 Position
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @Gedmo\Sluggable(position=2)
  18. * @ORM\Column(length=16)
  19. */
  20. private $prop;
  21. /**
  22. * @Gedmo\Sluggable(position=1)
  23. * @ORM\Column(length=64)
  24. */
  25. private $title;
  26. /**
  27. * @Gedmo\Sluggable
  28. * @ORM\Column(length=16)
  29. */
  30. private $code;
  31. /**
  32. * @Gedmo\Sluggable(position=0)
  33. * @ORM\Column(length=16)
  34. */
  35. private $other;
  36. /**
  37. * @Gedmo\Slug
  38. * @ORM\Column(length=64, unique=true)
  39. */
  40. private $slug;
  41. }