diff options
author | Jamie Matthews <[email protected]> | 2010-03-21 10:49:45 +0000 |
---|---|---|
committer | Jamie Matthews <[email protected]> | 2010-03-21 10:49:45 +0000 |
commit | 634861d67eb26f2cacd90d420cc876287ae3210a (patch) | |
tree | ed594c06b4c57ae30592f4aef1180fb3d1193ada /idiorm.php | |
parent | de828e61366bb2b0ee0b9ffde20cfa486aa1745b (diff) |
Fixed small bug when new objects are created, saved, edited and then saved again.
Diffstat (limited to 'idiorm.php')
-rw-r--r-- | idiorm.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -559,7 +559,7 @@ // If we've just inserted a new record, set the ID of this object if ($this->update_or_insert == self::INSERT) { - $this->update_or_insert == self::UPDATE; + $this->update_or_insert = self::UPDATE; $this->data[$this->get_id_column_name()] = self::$db->lastInsertId(); } |