This commit is contained in:
2021-11-11 03:10:01 +08:00
parent 8c3d3b2ce0
commit 229c0fa523
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ abstract class AbstractCollection extends Component implements \IteratorAggregat
return NULL;
}
if (!($this->_item[$offset] instanceof ModelInterface)) {
return $this->model->setAttributes($this->_item[$offset]);
return $this->model::populate($this->_item[$offset]);
}
return $this->_item[$offset];
}