改名
This commit is contained in:
@@ -234,9 +234,18 @@ class ActiveQuery extends Component
|
||||
* @return ActiveRecord
|
||||
* @throws Exception
|
||||
*/
|
||||
private function populate($model, $data)
|
||||
public function populate($model, $data)
|
||||
{
|
||||
return $this->getWith($model::populate($data));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $model
|
||||
* @return mixed
|
||||
*/
|
||||
public function getWith($model)
|
||||
{
|
||||
$model = $model::populate($data);
|
||||
if (empty($this->with) || !is_array($this->with)) {
|
||||
return $model;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user