改名
This commit is contained in:
@@ -426,6 +426,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
||||
return $this;
|
||||
}
|
||||
foreach ($param as $key => $val) {
|
||||
var_dump($this->has($key), $key);
|
||||
if (!$this->has($key)) {
|
||||
$this->setAttribute($key, $val);
|
||||
} else {
|
||||
|
||||
@@ -230,7 +230,6 @@ class Columns extends Component
|
||||
*/
|
||||
public function hasField(string $name): bool
|
||||
{
|
||||
var_dump($name, array_key_exists($name, $this->getFields()));
|
||||
return array_key_exists($name, $this->getFields());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user