get id exception

This commit is contained in:
Yuri Kuznetsov
2022-03-21 11:34:48 +02:00
parent fa02291a1a
commit 3ef6de205f
24 changed files with 117 additions and 70 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ class ArrayValue extends Database
public function deleteEntityAttribute(CoreEntity $entity, string $attribute): void
{
if (!$entity->getId()) {
if (!$entity->hasId()) {
throw new Error("ArrayValue: Can't delete {$attribute} w/o id given.");
}