Ignore:
Timestamp:
Dec 30, 2020, 11:52:07 PM (4 years ago)
Author:
chronos
Message:
  • Added: More modules models installation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/UserModel.php

    r890 r891  
    460460    $Desc = new ModelDesc('UserOnline');
    461461    $Desc->Memory = true;
    462     $Column = $Desc->AddReference('User', 'User');
    463     $Column->Nullable = true;   
     462    $Desc->AddReference('User', 'User', true);
    464463    $Desc->AddDateTime('ActivityTime');
    465464    $Desc->AddDateTime('LoginTime');
     
    490489    $Desc = new ModelDesc('PermissionGroupAssignment');
    491490    $Desc->AddReference('Group', 'PermissionGroup');
    492     $Column = $Desc->AddReference('AssignedGroup', 'PermissionGroup');
    493     $Column->Nullable = true;
    494     $Column = $Desc->AddReference('AssignedOperation', 'PermissionOperation');
    495     $Column->Nullable = true;
     491    $Desc->AddReference('AssignedGroup', 'PermissionGroup', true);
     492    $Desc->AddReference('AssignedOperation', 'PermissionOperation', true);
    496493    return $Desc;
    497494  }
     
    518515    $Desc = new ModelDesc('PermissionUserAssignment');
    519516    $Desc->AddReference('User', 'User');
    520     $Column = $Desc->AddReference('AssignedGroup', 'PermissionGroup');
    521     $Column->Nullable = true;
    522     $Column = $Desc->AddReference('AssignedOperation', 'PermissionOperation');
    523     $Column->Nullable = true;
     517    $Desc->AddReference('AssignedGroup', 'PermissionGroup', true);
     518    $Desc->AddReference('AssignedOperation', 'PermissionOperation', true);
    524519    return $Desc;
    525520  }
Note: See TracChangeset for help on using the changeset viewer.