HistoryLog.php 817 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace Gedmo\Loggable\Document;
  3. use Gedmo\Loggable\AbstractHistoryLog;
  4. /**
  5. * @Document
  6. */
  7. class HistoryLog extends AbstractHistoryLog
  8. {
  9. /**
  10. * @var string $id
  11. *
  12. * @Id
  13. */
  14. protected $id;
  15. /**
  16. * @var string $user
  17. *
  18. * @String
  19. */
  20. protected $user;
  21. /**
  22. * @var string $action
  23. *
  24. * @String
  25. */
  26. protected $action;
  27. /**
  28. * @var string $objectClass
  29. *
  30. * @String(name="object_class")
  31. */
  32. protected $objectClass;
  33. /**
  34. * @var string $foreignKey
  35. *
  36. * @String(name="foreign_key")
  37. */
  38. protected $foreignKey;
  39. /**
  40. * @var MongoData $date
  41. *
  42. * @Date
  43. */
  44. protected $date;
  45. protected function actualizeDate()
  46. {
  47. $this->date = new \MongoDate();
  48. }
  49. }