fix entity

This commit is contained in:
Yuri Kuznetsov
2020-07-14 11:47:32 +03:00
parent fbe6e3c1e6
commit 35445dbf2e

View File

@@ -248,7 +248,7 @@ class Entity extends BaseEntity
return null;
}
public function setLinkMultipleName(string $field, string $id, string $value)
public function setLinkMultipleName(string $field, string $id, ?string $value)
{
$namesAttribute = $field . 'Names';
if (!$this->has($namesAttribute)) return;