summaryrefslogtreecommitdiffstats
path: root/application/models/RoleMapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/models/RoleMapper.php')
-rw-r--r--application/models/RoleMapper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/application/models/RoleMapper.php b/application/models/RoleMapper.php
index 561a7d4..4001e3e 100644
--- a/application/models/RoleMapper.php
+++ b/application/models/RoleMapper.php
@@ -47,7 +47,7 @@ class Application_Model_RoleMapper
public function save(Application_Model_Role $role)
{
- $data = array('roleID'=> $role->getID() ,'groupID'=> $role->getGroupID() ,'title'=> $role->getTitle() ,'description'=> $role->getDescription() );
+ $data = array('roleID'=> $role->getID() ,'groupID'=> $role->getGroupID() ,'title'=> $role->getTitle() ,'description'=> $role->getDescription(), 'inheritance' => $role->getInheritance() );
if (null === ($id = $role->getID()) ) {
unset($data['roleID']);
@@ -75,7 +75,7 @@ class Application_Model_RoleMapper
$row = $result->current();
$role = new Application_Model_Role();
- $role->setID($row->roleID)->setGroupID($row->groupID)->setTitle($row->title)->setDescription($row->description);
+ $role->setID($row->roleID)->setGroupID($row->groupID)->setTitle($row->title)->setDescription($row->description)->setInheritance($row->inheritance);
return $role;
}
@@ -86,7 +86,7 @@ class Application_Model_RoleMapper
foreach ($resultSet as $row) {
$entry = new Application_Model_Role();
- $entry->setID($row->roleID)->setGroupID($row->groupID)->setTitle($row->title)->setDescription($row->description);
+ $entry->setID($row->roleID)->setGroupID($row->groupID)->setTitle($row->title)->setDescription($row->description)->setInheritance($row->inheritance);
$entries[] = $entry;
}