We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 339a84a commit 276d181Copy full SHA for 276d181
src/Model/BaseModel.php
@@ -31,11 +31,12 @@ public function isDeleted(): bool
31
32
public function isModified(): bool
33
{
34
- return $this->objectStatusHash !== $this->getObjectStatusHash();
+ return !$this->isNew() && !$this->isDeleted()
35
+ && $this->objectStatusHash !== $this->getObjectStatusHash();
36
}
37
38
public function isNew(): bool
39
40
return $this->objectStatusHash === self::STATUS_NEW;
41
-}
42
+}
0 commit comments