Skip to content

Commit 5d8cff1

Browse files
Let PHP take care of type comparison
1 parent 54f961f commit 5d8cff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MySimpleORM/Mapper/ObjectMapping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function updateObject($obj = null)
171171
*/
172172
public function saveObject()
173173
{
174-
if (($this->Object->get($this->PrimaryKey) !== 0)) {
174+
if (($this->Object->get($this->PrimaryKey) != 0)) {
175175
$this->updateObject($this->Object);
176176
} else {
177177
$this->insertObject($this->Object);

0 commit comments

Comments
 (0)