改名
This commit is contained in:
@@ -110,8 +110,13 @@ abstract class AbstractCollection extends Component implements \IteratorAggregat
|
|||||||
if (!$this->offsetExists($offset)) {
|
if (!$this->offsetExists($offset)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->_item[$offset] instanceof ActiveRecord) {
|
||||||
|
return $this->_item[$offset];
|
||||||
|
}
|
||||||
|
|
||||||
/** @var ActiveRecord $model */
|
/** @var ActiveRecord $model */
|
||||||
return $this->_item[$offset];
|
return $this->model::populate($this->_item[$offset]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user