Changeset 891 for trunk/Packages/Common/Base.php
- Timestamp:
- Dec 30, 2020, 11:52:07 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/Base.php
r890 r891 66 66 } 67 67 68 function AddText(string $Name): ModelColumnText 69 { 70 $Result = new ModelColumnText($Name); 71 $this->Columns[] = $Result; 72 return $Result; 73 } 74 68 75 function AddInteger(string $Name): ModelColumnInteger 69 76 { … … 94 101 } 95 102 96 function AddReference(string $Name, string $RefTable ): ModelColumnReference103 function AddReference(string $Name, string $RefTable, bool $Nullable = true): ModelColumnReference 97 104 { 98 105 $Result = new ModelColumnReference($Name, $RefTable); 99 106 $this->Columns[] = $Result; 107 $Result->Nullable = $Nullable; 100 108 return $Result; 101 109 } … … 114 122 $Column = $this->AddDateTime('ChangeTime'); 115 123 $Column->Nullable = true; 116 $this->AddInteger('ChangeReplaceId'); 124 $this->AddInteger('ChangeReplaceId'); 117 125 } 118 126 }
Note:
See TracChangeset
for help on using the changeset viewer.