Attribute is no longer iterable - cant be used now that we manage attribute tags

This commit is contained in:
2025-04-05 14:49:45 +11:00
parent cf535286c5
commit 28f4869628
3 changed files with 17 additions and 39 deletions

View File

@@ -11,8 +11,8 @@ trait MD5Updates
{
public function isDirty(): bool
{
foreach ($this->values->diff($this->values_old) as $key => $value)
if (md5(Arr::get($this->values_old,$key)) !== $value)
foreach ($this->values_old->dot()->keys()->merge($this->values->dot()->keys())->unique() as $dotkey)
if (md5(Arr::get($this->values_old->dot(),$dotkey)) !== Arr::get($this->values->dot(),$dotkey))
return TRUE;
return FALSE;