summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
authorJamie Matthews <[email protected]>2010-03-21 10:49:45 +0000
committerJamie Matthews <[email protected]>2010-03-21 10:49:45 +0000
commit634861d67eb26f2cacd90d420cc876287ae3210a (patch)
treeed594c06b4c57ae30592f4aef1180fb3d1193ada /idiorm.php
parentde828e61366bb2b0ee0b9ffde20cfa486aa1745b (diff)
Fixed small bug when new objects are created, saved, edited and then saved again.
Diffstat (limited to 'idiorm.php')
-rw-r--r--idiorm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/idiorm.php b/idiorm.php
index 6b40dc9..78a1803 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -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();
}