改名
This commit is contained in:
@@ -39,6 +39,13 @@ abstract class AbstractCollection extends Component implements \IteratorAggregat
|
||||
|
||||
protected ActiveQuery $query;
|
||||
|
||||
|
||||
public function clean()
|
||||
{
|
||||
unset($this->query, $this->model, $this->_item);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Collection constructor.
|
||||
*
|
||||
|
||||
@@ -27,6 +27,12 @@ class CollectionIterator extends \ArrayIterator
|
||||
private ActiveQuery $query;
|
||||
|
||||
|
||||
public function clean()
|
||||
{
|
||||
unset($this->query);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* CollectionIterator constructor.
|
||||
* @param $model
|
||||
|
||||
Reference in New Issue
Block a user