改名
This commit is contained in:
@@ -148,6 +148,7 @@ abstract class AbstractCollection extends Component implements \IteratorAggregat
|
||||
|
||||
$model = clone $this->getModel();
|
||||
$model = $model->setAttributes($this->_item[$offset]);
|
||||
$model->setIsCreate(false);
|
||||
$model->refresh();
|
||||
|
||||
return $model;
|
||||
|
||||
@@ -58,6 +58,7 @@ class CollectionIterator extends \ArrayIterator
|
||||
{
|
||||
$model = clone $this->model;
|
||||
$model->setAttributes($current);
|
||||
$model->setIsCreate(false);
|
||||
$model->refresh();
|
||||
return $model;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user