/** * @param TrackableEventInterface $event */ public function createLog(TrackableEventInterface $event) { $log = new Log(); $log->setTarget($event->getTargetIdentifier())->setNamespace($this->getNamespace($event))->setAction($this->getAction($event))->setUser($this->getUser()); $this->em->persist($log); $this->em->flush($log); }
public function testConstructor() { $log = new Log(); $this->assertNotNull($log->getTime(), 'A timestamp should be created with the Log'); }