Changeset 1534 for trunk/system/libraries/ORM.php
- Timestamp:
- 12/14/2007 12:52:49 PM (13 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/ORM.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/ORM.php
r1490 r1534 546 546 return FALSE; 547 547 548 if ( ! empty($this->has_any_belongs_to_many)) 549 { 550 // Foreign WHERE for this object 551 $where = array($this->class.'_id' => $this->object->id); 552 553 foreach($this->has_and_belongs_to_many as $table) 554 { 555 // Delete all many<>many relationships for this object 556 self::$db->delete($this->table_name.'_'.$table, $where); 557 } 558 } 559 548 560 // WHERE for this object 549 561 $where = array('id' => $this->object->id);
