MappedSuperclass.php 727 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace SoftDeleteable\Fixture\Entity;
  3. use Gedmo\Mapping\Annotation as Gedmo;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\MappedSuperclass
  7. * @Gedmo\SoftDeleteable(fieldName="deletedAt")
  8. */
  9. class MappedSuperclass
  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="deletedAt", type="datetime", nullable=true)
  19. */
  20. private $deletedAt;
  21. public function getId()
  22. {
  23. return $this->id;
  24. }
  25. public function setDeletedAt($deletedAt)
  26. {
  27. $this->deletedAt = $deletedAt;
  28. }
  29. public function getDeletedAt()
  30. {
  31. return $this->deletedAt;
  32. }
  33. }