Changeset 370 for trunk/Common/Model.php
- Timestamp:
- Jan 19, 2012, 12:30:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Model.php
r364 r370 22 22 define('PropertyDouble', 'Double'); 23 23 define('PropertyOneToMany', 'OneToMany'); 24 define('PropertyManyToOne', 'ManyToOne');25 24 define('PropertyManyToMany', 'ManyToMany'); 26 25 … … 138 137 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyBoolean); 139 138 } 140 141 function AddPropertyManyToOne($Name, $TargetModel, $TargetColumn) 142 { 143 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyManyToOne, 144 'TargetModel' => $TargetModel, 'TargetColumn' => $TargetColumn); 145 } 146 139 147 140 function AddPropertyManyToMany($TargetModel, $Relation, $ColumOwn, $ColumnTarget) 148 141 { … … 177 170 $Query .= '`'.$Property['Name'].'` INT(255) NOT NULL,'. 178 171 'KEY `'.$Property['Name'].'` (`'.$Property['Name'].'`),'; 179 else if($Property['Type'] == PropertyManyToOne)180 $Query .= '';181 172 else if($Property['Type'] == PropertyManyToMany) ; 182 173 // Create many-to-many table
Note:
See TracChangeset
for help on using the changeset viewer.