Fixed bugs causing incorrect computed attributes in imported data

This commit is contained in:
Constantin Graf
2025-02-04 19:51:54 -05:00
parent 55323fa4b4
commit 4eb716d2cc
9 changed files with 88 additions and 5 deletions

View File

@@ -188,6 +188,17 @@ class ImportDatabaseHelper
return $model;
}
/**
* @return array<TModel>
*/
public function getCachedModels(): array
{
if ($this->mapKeyToModel === null) {
return [];
}
return array_values($this->mapKeyToModel);
}
/**
* @param array<string, mixed> $identifierData
* @return TModel|null