Module.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. namespace SoftDeleteable\Fixture\Entity;
  3. use Gedmo\Mapping\Annotation as Gedmo;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity
  7. * @Gedmo\SoftDeleteable(fieldName="deletedAt")
  8. */
  9. class Module
  10. {
  11. /**
  12. * @ORM\Column(name="id", type="integer")
  13. * @ORM\Id
  14. * @ORM\GeneratedValue(strategy="IDENTITY")
  15. */
  16. private $id;
  17. /**
  18. * @ORM\Column(name="title", type="string")
  19. */
  20. private $title;
  21. /**
  22. * @ORM\Column(name="deletedAt", type="datetime", nullable=true)
  23. */
  24. private $deletedAt;
  25. /**
  26. * @ORM\ManyToOne(targetEntity="Page", inversedBy="modules")
  27. */
  28. private $page;
  29. public function getId()
  30. {
  31. return $this->id;
  32. }
  33. public function setPage(Page $page)
  34. {
  35. $this->page = $page;
  36. }
  37. public function getPage()
  38. {
  39. return $this->page;
  40. }
  41. public function setDeletedAt($deletedAt)
  42. {
  43. $this->deletedAt = $deletedAt;
  44. }
  45. public function getDeletedAt()
  46. {
  47. return $this->deletedAt;
  48. }
  49. public function setTitle($title)
  50. {
  51. $this->title = $title;
  52. }
  53. public function getTitle()
  54. {
  55. return $this->title;
  56. }
  57. }