123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- namespace Gedmo\Loggable\Entity;
- use Gedmo\Loggable\Log as BaseLog;
- /**
- * @Entity
- * @gedmo:Loggable
- */
- class Log extends BaseLog
- {
- /**
- * @var integer $id
- *
- * @Column(name="id", type="integer")
- * @Id
- * @GeneratedValue(strategy="IDENTITY")
- */
- protected $id;
- /**
- * @var string $user
- *
- * @Column(name="user", type="string", length=8)
- */
- protected $user;
- /**
- * @var string $action
- *
- * @Column(name="action", type="string", length=8)
- */
- protected $action;
- /**
- * @var string $object
- *
- * @Column(name="object", type="string", length=8)
- */
- protected $object;
- /**
- * @var string $date
- *
- * @Column(name="date", type="datetime", length=8)
- */
- protected $date;
- public function actualizeDate()
- {
- $this->date = new \DateTime();
- }
- }
|