summaryrefslogtreecommitdiffstats
path: root/application/models/EventreportMapper.php
diff options
context:
space:
mode:
authorSebastian Wagner2011-08-22 12:44:31 +0200
committerSebastian Wagner2011-08-22 12:44:31 +0200
commit470de8e236029aab49ef705a1b75f50e7f83c280 (patch)
tree585401703d3c8589e002eecb4ff96878844a5e2f /application/models/EventreportMapper.php
parentevents are now displayed in the calendar (diff)
parentkleine Korrekutr (diff)
downloadpoolctrl-470de8e236029aab49ef705a1b75f50e7f83c280.tar.gz
poolctrl-470de8e236029aab49ef705a1b75f50e7f83c280.tar.xz
poolctrl-470de8e236029aab49ef705a1b75f50e7f83c280.zip
Merge branch 'master' of git.openslx.org:lsfks/projekte/poolctrl
Diffstat (limited to 'application/models/EventreportMapper.php')
-rw-r--r--application/models/EventreportMapper.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/application/models/EventreportMapper.php b/application/models/EventreportMapper.php
index 8ea9a28..19b2977 100644
--- a/application/models/EventreportMapper.php
+++ b/application/models/EventreportMapper.php
@@ -39,7 +39,7 @@ class Application_Model_EventreportMapper
$stmt = $select->query();
$result = $stmt->fetchAll();
- if(!$array){
+ if(!$array){
$entries = array();
if(count($result) > 0) {
foreach ($result as $row) {
@@ -84,7 +84,7 @@ class Application_Model_EventreportMapper
public function save(Application_Model_Eventreport $eventreport)
{
- $data = array('reportID'=> $eventreport->getID() ,'eventID'=> $eventreport->getEventID() ,'report'=> $eventreport->getReport() );
+ $data = array('reportID'=> $eventreport->getID() ,'eventID'=> $eventreport->getEventID() ,'report'=> $eventreport->getReport(), 'type' => $eventreport->geType() );
if (null === ($id = $eventreport->getID()) ) {
unset($data['reportID']);
return $this->getDbTable()->insert($data);
@@ -118,7 +118,8 @@ class Application_Model_EventreportMapper
$eventreport
->setID($row->reportID)
->setEventID($row->eventID)
- ->setReport($row->report);
+ ->setReport($row->report)
+ ->setType($row->type);
}
public function fetchAll()
@@ -131,7 +132,8 @@ class Application_Model_EventreportMapper
$entry
->setID($row->reportID)
->setEventID($row->eventID)
- ->setReport($row->report);
+ ->setReport($row->report)
+ ->setType($row->type);
$entries[$row->reportID] = $entry;
}