改名
This commit is contained in:
@@ -124,7 +124,10 @@ class ActiveRecord extends BaseActiveRecord
|
|||||||
}
|
}
|
||||||
$select = new static();
|
$select = new static();
|
||||||
$select->attributes = $attributes;
|
$select->attributes = $attributes;
|
||||||
return $select->save();
|
if ($select->save()) {
|
||||||
|
throw new Exception($select->getLastError());
|
||||||
|
}
|
||||||
|
return $select;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user