Position.php 668 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. * @ORM\Column(length=16)
  18. */
  19. private $prop;
  20. /**
  21. * @ORM\Column(length=64)
  22. */
  23. private $title;
  24. /**
  25. * @ORM\Column(length=16)
  26. */
  27. private $code;
  28. /**
  29. * @ORM\Column(length=16)
  30. */
  31. private $other;
  32. /**
  33. * @Gedmo\Slug(fields={"code", "other", "title", "prop"})
  34. * @ORM\Column(length=64, unique=true)
  35. */
  36. private $slug;
  37. }