summaryrefslogtreecommitdiffstats
path: root/application/models/ClientMapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/models/ClientMapper.php')
-rw-r--r--application/models/ClientMapper.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/application/models/ClientMapper.php b/application/models/ClientMapper.php
index 7016ae7..2c530d9 100644
--- a/application/models/ClientMapper.php
+++ b/application/models/ClientMapper.php
@@ -47,7 +47,11 @@ class Application_Model_ClientMapper
public function save(Application_Model_Client $client)
{
- $data = array('clientID'=> $client->getID() ,'macadress'=> $client->getMacadress() ,'hardwarehash'=> $client->getHardwarehash() );
+ $data = array('clientID'=> $client->getID() ,
+ 'groupID' => $client->getGroupID(),
+ 'macadress'=> $client->getMacadress() ,
+ 'hardwarehash'=> $client->getHardwarehash()
+ );
if (null === ($id = $client->getID()) ) {
unset($data['clientID']);
@@ -75,7 +79,7 @@ class Application_Model_ClientMapper
$row = $result->current();
- $client->setID($row->clientID)->setMacadress($row->macadress)->setHardwarehash($row->hardwarehash);
+ $client->setID($row->clientID)->setGroupID($row->groupID)->setMacadress($row->macadress)->setHardwarehash($row->hardwarehash);
}
public function fetchAll()
@@ -85,7 +89,7 @@ class Application_Model_ClientMapper
foreach ($resultSet as $row) {
$entry = new Application_Model_Client();
- $entry->setID($row->clientID)->setMacadress($row->macadress)->setHardwarehash($row->hardwarehash);
+ $entry->setID($row->clientID)->setGroupID($row->groupID)->setMacadress($row->macadress)->setHardwarehash($row->hardwarehash);
$entries[] = $entry;
}