diff --git a/src/MySimpleORM/Mapper/ObjectMapping.php b/src/MySimpleORM/Mapper/ObjectMapping.php index c0f8b8a..e65bf1a 100644 --- a/src/MySimpleORM/Mapper/ObjectMapping.php +++ b/src/MySimpleORM/Mapper/ObjectMapping.php @@ -171,7 +171,7 @@ public function updateObject($obj = null) */ public function saveObject() { - if (($this->Object->get($this->PrimaryKey) !== 0)) { + if (($this->Object->get($this->PrimaryKey) != 0)) { $this->updateObject($this->Object); } else { $this->insertObject($this->Object);