summaryrefslogtreecommitdiffstats
path: root/application/models/EventreportMapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/models/EventreportMapper.php')
-rwxr-xr-xapplication/models/EventreportMapper.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/application/models/EventreportMapper.php b/application/models/EventreportMapper.php
index 00379f9..b5f405e 100755
--- a/application/models/EventreportMapper.php
+++ b/application/models/EventreportMapper.php
@@ -43,7 +43,7 @@ class Application_Model_EventreportMapper
$entries = array();
if(count($result) > 0) {
foreach ($result as $row) {
- $entry = new Application_Model_Event($row);
+ $entry = new Application_Model_Eventreport($row);
$entry->setID($row['reportID']);
$entries[] = $entry;
}
@@ -84,7 +84,7 @@ class Application_Model_EventreportMapper
public function save(Application_Model_Eventreport $eventreport)
{
- $data = array('reportID'=> $eventreport->getID() ,'eventID'=> $eventreport->getEventID() ,'result'=> $eventreport->getResult(), 'errors' => $eventreport->getErrors(), 'type' => $eventreport->geType() );
+ $data = array('reportID'=> $eventreport->getID() ,'eventID'=> $eventreport->getEventID() ,'result'=> $eventreport->getResult(), 'errors' => $eventreport->getErrors(), 'type' => $eventreport->geType(), 'created' => $eventreport->getCreated() );
if (null === ($id = $eventreport->getID()) ) {
unset($data['reportID']);
return $this->getDbTable()->insert($data);
@@ -120,6 +120,7 @@ class Application_Model_EventreportMapper
->setEventID($row->eventID)
->setResult($row->result)
->setErrors($row->errors)
+ ->setCreated($row->created)
->setType($row->type);
}
@@ -135,6 +136,7 @@ class Application_Model_EventreportMapper
->setEventID($row->eventID)
->setResult($row->result)
->setErrors($row->errors)
+ ->setCreated($row->created)
->setType($row->type);
$entries[$row->reportID] = $entry;