This commit is contained in:
2021-03-04 15:24:27 +08:00
parent 6a527b6433
commit a578c2eaac
+2 -1
View File
@@ -297,7 +297,6 @@ class ActiveRecord extends BaseActiveRecord
{
$relates = [];
if (empty($with = $this->getWith())) {
var_dump($with);
return $relates;
}
foreach ($with as $val) {
@@ -314,6 +313,7 @@ class ActiveRecord extends BaseActiveRecord
public function setWith($data): static
{
$this->_with = $data;
var_dump(get_called_class(), $this->_with);
return $this;
}
@@ -323,6 +323,7 @@ class ActiveRecord extends BaseActiveRecord
*/
public function getWith(): array|null
{
var_dump(get_called_class(), $this->_with);
return $this->_with;
}