mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 16:22:16 +01:00
Fixed bugs causing incorrect computed attributes in imported data
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user