Log.php 523 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Gedmo\Loggable\Document;
  3. use Gedmo\Loggable\Log as BaseLog;
  4. /**
  5. * @Document
  6. */
  7. class Log extends BaseLog
  8. {
  9. /**
  10. * @Id
  11. */
  12. protected $id;
  13. /**
  14. * @String
  15. */
  16. protected $user;
  17. /**
  18. * @String
  19. */
  20. protected $action;
  21. /**
  22. * The return value of __toString
  23. *
  24. * @String
  25. */
  26. protected $object;
  27. /**
  28. * @Date
  29. */
  30. protected $date;
  31. public function actualizeDate()
  32. {
  33. $this->date = new \MongoDate();
  34. }
  35. }