This commit is contained in:
2021-03-04 15:27:21 +08:00
parent b4a69ef163
commit 7b02f0b489
+3
View File
@@ -313,6 +313,9 @@ class ActiveRecord extends BaseActiveRecord
*/
public function setWith($data): static
{
if (empty($data)) {
return $this;
}
$this->_with = $data;
return $this;
}