summaryrefslogtreecommitdiffstats
path: root/application/models/PreBootMapper.php
diff options
context:
space:
mode:
authorMichael Neves2012-01-26 16:43:30 +0100
committerMichael Neves2012-01-26 16:43:30 +0100
commit08d88f61bc64b9a2a6a9980cde4df6a02d5078a1 (patch)
tree224b73e88cb75c619150219f56374799449be8d6 /application/models/PreBootMapper.php
parentBootiso and Preboot Controller fix (diff)
downloadpbs2-08d88f61bc64b9a2a6a9980cde4df6a02d5078a1.tar.gz
pbs2-08d88f61bc64b9a2a6a9980cde4df6a02d5078a1.tar.xz
pbs2-08d88f61bc64b9a2a6a9980cde4df6a02d5078a1.zip
Bootiso and Preboot Model fix
Diffstat (limited to 'application/models/PreBootMapper.php')
-rw-r--r--application/models/PreBootMapper.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/application/models/PreBootMapper.php b/application/models/PreBootMapper.php
index ac86d3c..fd070cd 100644
--- a/application/models/PreBootMapper.php
+++ b/application/models/PreBootMapper.php
@@ -81,7 +81,7 @@ class Application_Model_PreBootMapper {
public function save(Application_Model_PreBoot $preboot) {
- $data = array('prebootID' => $preboot->getID() , 'membershipID' => $preboot->getMembershipID() , 'title' => $preboot->getTitle() , 'groupID' => $preboot->getGroupID(), 'preboottypeID' => $preboot->getPreBootTypeID(), 'serialnumber' => $preboot->getSerialnumber(), 'created' => $preboot->getCreated(), 'source' => $preboot->getSource(), 'description' => $preboot->getDescription());
+ $data = array('prebootID' => $preboot->getID() , 'membershipID' => $preboot->getMembershipID() , 'title' => $preboot->getTitle() , 'groupID' => $preboot->getGroupID(), 'preboottypeID' => $preboot->getPreboottypeID(), 'serialnumber' => $preboot->getSerialnumber(), 'created' => $preboot->getCreated(), 'source' => $preboot->getSource(), 'description' => $preboot->getDescription());
if (null === ($id = $preboot->getID()) ) {
unset($data['prebootID']);
@@ -110,10 +110,10 @@ class Application_Model_PreBootMapper {
if($preboot == null) {
$preboot = new Application_Model_PreBoot();
- $preboot->setID($row->prebootID)->setMembershipID($row->membershipID)->setTitle($row->title)->setGroupID($row->groupID)->setPreBootTypeID($row->preboottypeID)->setSerialnumber($row->serialnumber)->setSource($row->source)->setCreated($row->created)->setDescription($row->description);
+ $preboot->setID($row->prebootID)->setMembershipID($row->membershipID)->setTitle($row->title)->setGroupID($row->groupID)->setPreboottypeID($row->preboottypeID)->setSerialnumber($row->serialnumber)->setSource($row->source)->setCreated($row->created)->setDescription($row->description);
return $preboot;
} else {
- $preboot->setID($row->prebootID)->setMembershipID($row->membershipID)->setTitle($row->title)->setGroupID($row->groupID)->setPreBootTypeID($row->preboottypeID)->setSerialnumber($row->serialnumber)->setSource($row->source)->setCreated($row->created)->setDescription($row->description);
+ $preboot->setID($row->prebootID)->setMembershipID($row->membershipID)->setTitle($row->title)->setGroupID($row->groupID)->setPreboottypeID($row->preboottypeID)->setSerialnumber($row->serialnumber)->setSource($row->source)->setCreated($row->created)->setDescription($row->description);
}
}
@@ -123,7 +123,7 @@ class Application_Model_PreBootMapper {
foreach ($resultSet as $row) {
$entry = new Application_Model_PreBoot();
- $entry->setID($row->prebootID)->setMembershipID($row->membershipID)->setTitle($row->title)->setGroupID($row->groupID)->setPreBootTypeID($row->preboottypeID)->setSerialnumber($row->serialnumber)->setSource($row->source)->setCreated($row->created)->setDescription($row->description);
+ $entry->setID($row->prebootID)->setMembershipID($row->membershipID)->setTitle($row->title)->setGroupID($row->groupID)->setPreboottypeID($row->preboottypeID)->setSerialnumber($row->serialnumber)->setSource($row->source)->setCreated($row->created)->setDescription($row->description);
$entries[] = $entry;
}