// The following arrays are maps between entity ids in the file versus the database.
// In the file they are sequential (1,2,3...) while in the database the entities have different ids.
- var $userMap = array(); // User ids.
var $roleMap = array(); // Role ids.
+ var $userMap = array(); // User ids.
var $projectMap = array(); // Project ids.
var $taskMap = array(); // Task ids.
var $clientMap = array(); // Client ids.
foreach ($this->users as $key=>$user_item) {
$user_id = ttUserHelper::insert(array(
'team_id' => $this->team_id,
- 'role' => $user_item['ROLE'],
+ 'role_id' => $user_item['ROLE_ID'], // Note: NOT mapped value. Not implemented currently, need to fix.
'client_id' => $user_item['CLIENT_ID'], // Note: NOT mapped value, replaced in CLIENT handler.
'name' => $user_item['NAME'],
'login' => $user_item['LOGIN'],