ConfigurationArticle.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. namespace Sluggable\Fixture;
  3. use Gedmo\Sluggable\Sluggable;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity
  8. */
  9. class ConfigurationArticle implements Sluggable
  10. {
  11. /** @ORM\Id @ORM\GeneratedValue @ORM\Column(type="integer") */
  12. private $id;
  13. /**
  14. * @ORM\Column(name="title", type="string", length=64)
  15. */
  16. private $title;
  17. /**
  18. * @ORM\Column(name="code", type="string", length=16)
  19. */
  20. private $code;
  21. /**
  22. * @Gedmo\Slug(updatable=false, unique=false, unique_base=null, fields={"title", "code"})
  23. * @ORM\Column(name="slug", type="string", length=32)
  24. */
  25. private $slug;
  26. public function getId()
  27. {
  28. return $this->id;
  29. }
  30. public function setTitle($title)
  31. {
  32. $this->title = $title;
  33. }
  34. public function getTitle()
  35. {
  36. return $this->title;
  37. }
  38. public function setCode($code)
  39. {
  40. $this->code = $code;
  41. }
  42. public function getCode()
  43. {
  44. return $this->code;
  45. }
  46. public function setSlug($slug)
  47. {
  48. $this->slug = $slug;
  49. }
  50. public function getSlug()
  51. {
  52. return $this->slug;
  53. }
  54. }