Force public member variables or mapper changes

This commit is contained in:
Dennis Eichhorn 2023-10-04 15:52:16 +00:00
parent 4d57dcc68a
commit c4379179d5
3 changed files with 8 additions and 0 deletions

View File

@ -111,6 +111,12 @@
"name": "monitoring_request_datetime",
"type": "DATETIME",
"null": false
},
"monitoring_request_end": {
"name": "monitoring_request_end",
"type": "DATETIME",
"null": true,
"default": null
}
}
}

View File

@ -93,6 +93,7 @@ class Controller extends ModuleAbstract
}
$stat = new ImpressionStat($request);
$stat->end = new \DateTime('now');
// This is not run through the createModel() function on purpose
ImpressionStatMapper::create()->execute($stat);

View File

@ -45,6 +45,7 @@ final class ImpressionStatMapper extends DataMapperFactory
'monitoring_request_referer' => ['name' => 'monitoring_request_referer', 'type' => 'string', 'internal' => 'referer',],
'monitoring_request_agent' => ['name' => 'monitoring_request_agent', 'type' => 'string', 'internal' => 'userAgent',],
'monitoring_request_datetime' => ['name' => 'monitoring_request_datetime', 'type' => 'DateTime', 'internal' => 'datetime',],
'monitoring_request_end' => ['name' => 'monitoring_request_end', 'type' => 'DateTime', 'internal' => 'end',],
];
/**