This commit is contained in:
2023-04-01 16:03:02 +08:00
parent 509eabe78e
commit 2aec2afc59
+2 -8
View File
@@ -123,17 +123,11 @@ class ActiveQuery extends Component implements ISqlBuilder
}
/**
* @param $name
* @param array $name
* @return $this
*/
public function with($name): static
public function with(array $name): static
{
if (empty($name)) {
return $this;
}
if (is_string($name)) {
$name = explode(',', $name);
}
foreach ($name as $val) {
$this->with[] = $val;
}