Icarus.php 621 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace Sluggable\Fixture\Issue104;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6. * @ORM\Entity
  7. */
  8. class Icarus extends Bus
  9. {
  10. /**
  11. * @ORM\Column(length=128)
  12. */
  13. private $description;
  14. /**
  15. * @Gedmo\Slug(fields={"title"})
  16. * @ORM\Column(length=128, unique=true)
  17. */
  18. private $slug;
  19. public function setDescription($description)
  20. {
  21. $this->description = $description;
  22. }
  23. public function getDescription()
  24. {
  25. return $this->description;
  26. }
  27. public function getSlug()
  28. {
  29. return $this->slug;
  30. }
  31. }