Skip to content

Commit

Permalink
fix: Issue (HasMany resource item)
Browse files Browse the repository at this point in the history
Issue #1294
  • Loading branch information
lee-to committed Oct 12, 2024
1 parent 1ad9f0e commit c7f777c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Traits/Resource/ResourceModelQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ public function setItemID(int|string|null $itemID): static

public function getItemID(): int|string|null
{
// empty string is the value that stops the logic
if($this->itemID === '') {
return null;
}

if(!blank($this->itemID)) {
return $this->itemID;
}
Expand Down

0 comments on commit c7f777c

Please sign in to comment.