This commit is contained in:
Yuri Kuznetsov
2025-12-06 09:45:37 +02:00
parent 1600c1eb13
commit 6dd898eb6e
2 changed files with 6 additions and 1 deletions

View File

@@ -184,4 +184,9 @@ class Notification extends Entity
{
return $this->get('actionId');
}
public function setGroupedCount(?string $groupedCount): self
{
return $this->set('groupedCount', $groupedCount);
}
}

View File

@@ -132,7 +132,7 @@ class RecordService
$groupedCount = $groupedCountMap[$entity->getActionId()] ?? 0;
}
$entity->set('groupedCount', $groupedCount);
$entity->setGroupedCount($groupedCount);
}
$collection = new EntityCollection([...$collection], Notification::ENTITY_TYPE);