Log.php 901 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace Gedmo\Loggable\Entity;
  3. use Gedmo\Loggable\Log as BaseLog;
  4. /**
  5. * @Entity
  6. * @gedmo:Loggable
  7. */
  8. class Log extends BaseLog
  9. {
  10. /**
  11. * @var integer $id
  12. *
  13. * @Column(name="id", type="integer")
  14. * @Id
  15. * @GeneratedValue(strategy="IDENTITY")
  16. */
  17. protected $id;
  18. /**
  19. * @var string $user
  20. *
  21. * @Column(name="user", type="string", length=8)
  22. */
  23. protected $user;
  24. /**
  25. * @var string $action
  26. *
  27. * @Column(name="action", type="string", length=8)
  28. */
  29. protected $action;
  30. /**
  31. * @var string $object
  32. *
  33. * @Column(name="object", type="string", length=8)
  34. */
  35. protected $object;
  36. /**
  37. * @var string $date
  38. *
  39. * @Column(name="date", type="datetime", length=8)
  40. */
  41. protected $date;
  42. public function actualizeDate()
  43. {
  44. $this->date = new \DateTime();
  45. }
  46. }