This commit is contained in:
2021-03-04 14:24:45 +08:00
parent a7e0f306d2
commit cc91115514
3 changed files with 60 additions and 4 deletions
+3 -3
View File
@@ -227,10 +227,10 @@ class ActiveQuery extends Component implements ISqlBuilder
/**
* @param $model
* @return mixed
* @param ActiveRecord $model
* @return ActiveRecord
*/
public function getWith($model): mixed
public function getWith(ActiveRecord $model): ActiveRecord
{
if (empty($this->with) || !is_array($this->with)) {
return $model;