改名
This commit is contained in:
@@ -46,7 +46,7 @@ abstract class AbstractCollection extends Component implements \IteratorAggregat
|
||||
* @param array $array
|
||||
* @param null $model
|
||||
*/
|
||||
public function __construct($query, array $array = [], $model = null)
|
||||
public function __construct(ActiveQuery $query, array $array = [], $model = null)
|
||||
{
|
||||
$this->_item = $array;
|
||||
$this->query = $query;
|
||||
|
||||
@@ -34,7 +34,7 @@ class CollectionIterator extends \ArrayIterator
|
||||
* @param int $flags
|
||||
* @throws Exception
|
||||
*/
|
||||
public function __construct($model, $query, $array = array(), $flags = 0)
|
||||
public function __construct(ActiveRecord $model,ActiveQuery $query, $array = array(), $flags = 0)
|
||||
{
|
||||
$this->model = $model;
|
||||
$this->query = $query;
|
||||
|
||||
Reference in New Issue
Block a user