Changeset 403 for branches/Modular/Common/Model.php
- Timestamp:
- Jun 11, 2012, 10:08:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Modular/Common/Model.php
r401 r403 41 41 $this->AddPropertyOneToMany('ItemOwnerModule', 'SystemModule', true); 42 42 $this->AddPropertyDateTime('ItemTimeCreate', true); 43 $this->AddPropertyOneToMany('ItemUserCreate', 'User', true);43 //$this->AddPropertyOneToMany('ItemUserCreate', 'User', true); 44 44 $this->AddPropertyDateTime('ItemTimeModify', true); 45 $this->AddPropertyOneToMany('ItemUserModify', 'User', true);45 //$this->AddPropertyOneToMany('ItemUserModify', 'User', true); 46 46 } 47 47 … … 169 169 function Install() 170 170 { 171 DebugLog('Installing model '.$this->Name.'...'); 171 172 if($this->Installed) return; 172 173 $this->Installed = true; … … 243 244 function UnInstall() 244 245 { 246 DebugLog('Uninstalling model '.$this->Name.'...'); 245 247 foreach($this->Properties as $Property) 246 248 { … … 251 253 $this->Database->query('ALTER TABLE `'.$this->Name.'` DROP FOREIGN KEY `'. 252 254 $this->Name.'_ibfk_'.$Property['Name'].'`'); 253 echo('ss');254 255 } 255 256 } 256 //$this->Database->query('DROP TABLE IF EXISTS `'.$this->Name.'`');257 $this->Database->query('DROP TABLE IF EXISTS `'.$this->Name.'`'); 257 258 $this->Installed = false; 258 259 }
Note:
See TracChangeset
for help on using the changeset viewer.