改名
This commit is contained in:
@@ -296,15 +296,16 @@ class ActiveRecord extends BaseActiveRecord
|
|||||||
private function runRelate(): array
|
private function runRelate(): array
|
||||||
{
|
{
|
||||||
$relates = [];
|
$relates = [];
|
||||||
if (empty($with = $this->getWith())) {
|
if (empty($this->_with)) {
|
||||||
return $relates;
|
return $relates;
|
||||||
}
|
}
|
||||||
foreach ($with as $val) {
|
foreach ($this->_with as $val) {
|
||||||
$relates[$val] = $this->resolveObject($val);
|
$relates[$val] = $this->resolveObject($val);
|
||||||
}
|
}
|
||||||
return $relates;
|
return $relates;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private array $_with = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $data
|
* @param $data
|
||||||
|
|||||||
@@ -58,7 +58,6 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
|||||||
protected ?SEvent $event;
|
protected ?SEvent $event;
|
||||||
|
|
||||||
|
|
||||||
protected array $_with = [];
|
|
||||||
|
|
||||||
|
|
||||||
/** @var array */
|
/** @var array */
|
||||||
|
|||||||
Reference in New Issue
Block a user