This commit is contained in:
2021-03-05 18:25:56 +08:00
parent cf395ad641
commit 4935ca7b2c
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -208,8 +208,6 @@ class ActiveQuery extends Component implements ISqlBuilder
{
$data = $this->execute($this->builder->all())->all();
var_dump($data);
$collect = new Collection($this, $data, $this->modelClass);
if ($this->asArray) {
return $collect->toArray();
+1 -1
View File
@@ -433,7 +433,6 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
return $this;
}
foreach ($param as $key => $val) {
var_dump($param, $val);
if (!$this->has($key)) {
$this->setAttribute($key, $val);
} else {
@@ -760,6 +759,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
if (empty($this->_fields)) {
$this->_fields = static::getColumns()->format();
}
var_dump($attribute, $this->_fields);
return array_key_exists($attribute, $this->_fields);
}