User.php 966 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 User
  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 $username;
  21. /**
  22. * @ORM\Column(name="deleted_time", type="datetime", nullable=true)
  23. */
  24. private $deletedAt;
  25. public function getId()
  26. {
  27. return $this->id;
  28. }
  29. public function setUsername($username)
  30. {
  31. $this->username = $username;
  32. }
  33. public function getUsername()
  34. {
  35. return $this->username;
  36. }
  37. public function setDeletedAt($deletedAt)
  38. {
  39. $this->deletedAt = $deletedAt;
  40. }
  41. public function getDeletedAt()
  42. {
  43. return $this->deletedAt;
  44. }
  45. }