id is not empty string check

This commit is contained in:
Yuri Kuznetsov
2025-08-25 11:40:53 +03:00
parent 285711a07a
commit b5e65ec5d8

View File

@@ -205,6 +205,10 @@ class LinkMultipleSaver
if (!is_string($id)) {
throw new RuntimeException("Non-string ID in link-multiple.");
}
if ($id === '') {
throw new RuntimeException("An entity ID value in link-multiple.");
}
}
}