变更
This commit is contained in:
+2
-8
@@ -123,17 +123,11 @@ class ActiveQuery extends Component implements ISqlBuilder
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $name
|
* @param array $name
|
||||||
* @return $this
|
* @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) {
|
foreach ($name as $val) {
|
||||||
$this->with[] = $val;
|
$this->with[] = $val;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user