diff --git a/src/DcGeneral/Data/Model.php b/src/DcGeneral/Data/Model.php index 5ad1dd13f..d763b323a 100644 --- a/src/DcGeneral/Data/Model.php +++ b/src/DcGeneral/Data/Model.php @@ -115,8 +115,9 @@ public function getId() { $item = $this->getItem(); assert($item instanceof IItem); + $rawId = $item->get('id'); - return $item->get('id'); + return null === $rawId ? null : (string) $rawId; } /**