Validate.php 772 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 Validate
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(length=32)
  18. */
  19. private $title;
  20. /**
  21. * @Gedmo\Slug(updatable="false", fields={"title"}, unique="false")
  22. * @ORM\Column(length=64, unique=true)
  23. */
  24. private $slug;
  25. public function getId()
  26. {
  27. return $this->id;
  28. }
  29. public function setTitle($title)
  30. {
  31. $this->title = $title;
  32. }
  33. public function getTitle()
  34. {
  35. return $this->title;
  36. }
  37. public function getSlug()
  38. {
  39. return $this->slug;
  40. }
  41. }