modify
This commit is contained in:
@@ -794,10 +794,6 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
|||||||
*/
|
*/
|
||||||
public function __set($name, $value)
|
public function __set($name, $value)
|
||||||
{
|
{
|
||||||
if (!$this->has($name)) {
|
|
||||||
parent::__set($name, $value);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$method = $this->_get_annotation($name, self::SET);
|
$method = $this->_get_annotation($name, self::SET);
|
||||||
if (!empty($method)) {
|
if (!empty($method)) {
|
||||||
$value = $this->{$method}($value);
|
$value = $this->{$method}($value);
|
||||||
|
|||||||
Reference in New Issue
Block a user