This commit is contained in:
2021-03-04 15:05:46 +08:00
parent 5d1a3b3533
commit 5a237cdd77
4 changed files with 23 additions and 19 deletions
+11
View File
@@ -143,6 +143,17 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
}
/**
* @param $data
* @return BaseActiveRecord
*/
public function setWith($data): static
{
$this->_with = $data;
return $this;
}
/**
* @param $name
* @param $method