Changeset 2090

Show
Ignore:
Timestamp:
02/20/2008 06:57:20 PM (11 months ago)
Author:
Shadowhand
Message:

ORM models should not re-find when they are woken up. What the hell was I thinking?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/ORM.php

    r2053 r2090  
    116116                // Connect to the database 
    117117                $this->connect(); 
    118  
    119                 // Reload the internal object 
    120                 empty($this->object->id) or $this->find($this->object->id); 
    121118        } 
    122119 
     
    467464        protected function where_key($id = NULL) 
    468465        { 
    469                 return 'id'; 
     466                return $this->table.'.id'; 
    470467        } 
    471468