public function removePermission(Lynx_Acl_Role_Db $role, Lynx_Acl_Permission_Db $permission) { $sql = "DELETE FROM `" . $this->_db->tablePrefix() . "role_permissions` WHERE `role_id` = ? AND `permission_id` = ? LIMIT 1"; if ($this->_db->query($sql, array($role->getId(), $permission->getId()))) { return true; } else { throw new Exception('Could not remove permission'); } }