This commit is contained in:
2021-04-25 11:52:31 +08:00
parent be8faa5cb0
commit 7cf69eff7e
3 changed files with 982 additions and 961 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ abstract class AbstractCollection extends Component implements \IteratorAggregat
if (is_object($model)) {
return $model;
}
return new $model();
return $model::populate([]);
}