1
This commit is contained in:
+2
-5
@@ -129,9 +129,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
|
|||||||
{
|
{
|
||||||
$method = di(Setter::class)->getSetter(static::class, $name);
|
$method = di(Setter::class)->getSetter(static::class, $name);
|
||||||
if (!empty($method)) {
|
if (!empty($method)) {
|
||||||
var_dump($value);
|
|
||||||
$value = $this->{$method}($value);
|
$value = $this->{$method}($value);
|
||||||
var_dump($value);
|
|
||||||
}
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
@@ -514,10 +512,9 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
|
|||||||
if (empty($param)) {
|
if (empty($param)) {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
foreach ($this->_attributes as $key => $attribute) {
|
foreach ($param as $key => $attribute) {
|
||||||
$this->_attributes[$key] = $this->_setter($key, $attribute);
|
$this->setAttribute($key, $attribute);
|
||||||
}
|
}
|
||||||
var_dump($this->_attributes);
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user