改名
This commit is contained in:
@@ -297,7 +297,6 @@ class ActiveRecord extends BaseActiveRecord
|
|||||||
{
|
{
|
||||||
$relates = [];
|
$relates = [];
|
||||||
if (empty($with = $this->getWith())) {
|
if (empty($with = $this->getWith())) {
|
||||||
var_dump($with);
|
|
||||||
return $relates;
|
return $relates;
|
||||||
}
|
}
|
||||||
foreach ($with as $val) {
|
foreach ($with as $val) {
|
||||||
@@ -314,6 +313,7 @@ class ActiveRecord extends BaseActiveRecord
|
|||||||
public function setWith($data): static
|
public function setWith($data): static
|
||||||
{
|
{
|
||||||
$this->_with = $data;
|
$this->_with = $data;
|
||||||
|
var_dump(get_called_class(), $this->_with);
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -323,6 +323,7 @@ class ActiveRecord extends BaseActiveRecord
|
|||||||
*/
|
*/
|
||||||
public function getWith(): array|null
|
public function getWith(): array|null
|
||||||
{
|
{
|
||||||
|
var_dump(get_called_class(), $this->_with);
|
||||||
return $this->_with;
|
return $this->_with;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user