diff --git a/Database/ActiveRecord.php b/Database/ActiveRecord.php index 6e59e2cd..f6225331 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -313,6 +313,9 @@ class ActiveRecord extends BaseActiveRecord */ public function setWith($data): static { + if (empty($data)) { + return $this; + } $this->_with = $data; return $this; }