改名
This commit is contained in:
@@ -119,7 +119,7 @@ abstract class AbstractCollection extends Component implements \IteratorAggregat
|
||||
if (is_object($model)) {
|
||||
return $model;
|
||||
}
|
||||
return new $model();
|
||||
return $model::populate([]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user