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 4178c3d commit 86da6f8Copy full SHA for 86da6f8
src/Item.php
@@ -55,7 +55,7 @@ public function toJsonApiArray(): array
55
'type' => $this->getType(),
56
];
57
58
- if (!$this->isNew()) {
+ if ($this->hasId()) {
59
$data['id'] = $this->getId();
60
}
61
0 commit comments