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/Packages/Common/Base.php

    r890 r891  
    6666  }
    6767
     68  function AddText(string $Name): ModelColumnText
     69  {
     70    $Result = new ModelColumnText($Name);
     71    $this->Columns[] = $Result;
     72    return $Result;
     73  }
     74
    6875  function AddInteger(string $Name): ModelColumnInteger
    6976  {
     
    94101  }
    95102
    96   function AddReference(string $Name, string $RefTable): ModelColumnReference
     103  function AddReference(string $Name, string $RefTable, bool $Nullable = true): ModelColumnReference
    97104  {
    98105    $Result = new ModelColumnReference($Name, $RefTable);
    99106    $this->Columns[] = $Result;
     107    $Result->Nullable = $Nullable;
    100108    return $Result;
    101109  }
     
    114122    $Column = $this->AddDateTime('ChangeTime');
    115123    $Column->Nullable = true;
    116     $this->AddInteger('ChangeReplaceId');   
     124    $this->AddInteger('ChangeReplaceId');
    117125  }
    118126}
Note: See TracChangeset for help on using the changeset viewer.