diff options
Diffstat (limited to 'application/models/BootIsoMapper.php')
| -rw-r--r-- | application/models/BootIsoMapper.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/application/models/BootIsoMapper.php b/application/models/BootIsoMapper.php index 624940b..0039677 100644 --- a/application/models/BootIsoMapper.php +++ b/application/models/BootIsoMapper.php @@ -32,13 +32,13 @@ class Application_Model_BootIsoMapper public function save(Application_Model_BootIso $botiso) { - $data = array('bootisoID'=> $botiso->getBootisoID() ,'membershipID'=> $botiso->getMembershipID() ,'groupID'=> $botiso->getGroupID() ,'serialnumber'=> $botiso->getSerialnumber() ,'created'=> $botiso->getCreated() ,'expires'=> $botiso->getExpires() ,'public'=> $botiso->getPublic() ); + $data = array('bootisoID'=> $botiso->getID() ,'membershipID'=> $botiso->getMembershipID() ,'title'=> $botiso->getTitle(),'path'=> $botiso->getPath() ,'groupID'=> $botiso->getGroupID() ,'serialnumber'=> $botiso->getSerialnumber() ,'created'=> $botiso->getCreated() ,'expires'=> $botiso->getExpires() ,'public'=> $botiso->getPublic() ); if (null === ($id = $botiso->getID()) ) { - unset($data['botisoID']); + unset($data['bootisoID']); $this->getDbTable()->insert($data); } else { - $this->getDbTable()->update($data, array('botisoID = ?' => $id)); + $this->getDbTable()->update($data, array('bootisoID = ?' => $id)); } } @@ -47,7 +47,7 @@ class Application_Model_BootIsoMapper if (null === ($id = $botiso->getID()) ) { return; } else { - $this->getDbTable()->delete(array('botisoID = ?' => $id)); + $this->getDbTable()->delete(array('bootisoID = ?' => $id)); } } @@ -60,7 +60,7 @@ class Application_Model_BootIsoMapper $row = $result->current(); - $botiso->setBootisoID($row->bootisoID)->setMembershipID($row->membershipID)->setGroupID($row->groupID)->setSerialnumber($row->serialnumber)->setCreated($row->created)->setExpires($row->expires)->setPublic($row->public); + $botiso->setID($row->bootisoID)->setMembershipID($row->membershipID)->setTitle($row->title)->setPath($row->path)->setGroupID($row->groupID)->setSerialnumber($row->serialnumber)->setCreated($row->created)->setExpires($row->expires)->setPublic($row->public); } public function fetchAll() @@ -70,7 +70,7 @@ class Application_Model_BootIsoMapper foreach ($resultSet as $row) { $entry = new Application_Model_BootIso(); - $entry->setBootisoID($row->bootisoID)->setMembershipID($row->membershipID)->setGroupID($row->groupID)->setSerialnumber($row->serialnumber)->setCreated($row->created)->setExpires($row->expires)->setPublic($row->public); + $entry->setID($row->bootisoID)->setMembershipID($row->membershipID)->setTitle($row->title)->setPath($row->path)->setGroupID($row->groupID)->setSerialnumber($row->serialnumber)->setCreated($row->created)->setExpires($row->expires)->setPublic($row->public); $entries[] = $entry; } |
