diff --git a/Database/Base/AbstractCollection.php b/Database/Base/AbstractCollection.php index 33a1a5d5..d43b192e 100644 --- a/Database/Base/AbstractCollection.php +++ b/Database/Base/AbstractCollection.php @@ -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; diff --git a/Database/Base/CollectionIterator.php b/Database/Base/CollectionIterator.php index c1a80f61..ebb1d718 100644 --- a/Database/Base/CollectionIterator.php +++ b/Database/Base/CollectionIterator.php @@ -58,6 +58,7 @@ class CollectionIterator extends \ArrayIterator { $model = clone $this->model; $model->setAttributes($current); + $model->setIsCreate(false); $model->refresh(); return $model; }