update() public abstract method
Saves the changes to this active record into the database.
Usage example:
$customer = Customer::findOne($id); $customer->name = $name; $customer->email = $email; $customer->update();
public abstract integer|boolean update ( $runValidation = true, $attributeNames = null ) | ||
---|---|---|
$runValidation | boolean |
Whether to perform validation (calling \yii\db\Model::validate()) before saving the record. Defaults to |
$attributeNames | array |
List of attributes that need to be saved. Defaults to |
return | integer|boolean |
The number of rows affected, or |
Please login to continue.