改名
This commit is contained in:
@@ -208,8 +208,6 @@ class ActiveQuery extends Component implements ISqlBuilder
|
|||||||
{
|
{
|
||||||
$data = $this->execute($this->builder->all())->all();
|
$data = $this->execute($this->builder->all())->all();
|
||||||
|
|
||||||
var_dump($data);
|
|
||||||
|
|
||||||
$collect = new Collection($this, $data, $this->modelClass);
|
$collect = new Collection($this, $data, $this->modelClass);
|
||||||
if ($this->asArray) {
|
if ($this->asArray) {
|
||||||
return $collect->toArray();
|
return $collect->toArray();
|
||||||
|
|||||||
@@ -433,7 +433,6 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
foreach ($param as $key => $val) {
|
foreach ($param as $key => $val) {
|
||||||
var_dump($param, $val);
|
|
||||||
if (!$this->has($key)) {
|
if (!$this->has($key)) {
|
||||||
$this->setAttribute($key, $val);
|
$this->setAttribute($key, $val);
|
||||||
} else {
|
} else {
|
||||||
@@ -760,6 +759,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
|||||||
if (empty($this->_fields)) {
|
if (empty($this->_fields)) {
|
||||||
$this->_fields = static::getColumns()->format();
|
$this->_fields = static::getColumns()->format();
|
||||||
}
|
}
|
||||||
|
var_dump($attribute, $this->_fields);
|
||||||
return array_key_exists($attribute, $this->_fields);
|
return array_key_exists($attribute, $this->_fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user