From 6033e20025d773b100cd2071cfd990e618e7dc80 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 3 Jul 2013 04:37:08 +0400 Subject: [PATCH] added note about model validation --- docs/guide/active-record.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guide/active-record.md b/docs/guide/active-record.md index 466f153..35ef009 100644 --- a/docs/guide/active-record.md +++ b/docs/guide/active-record.md @@ -162,6 +162,8 @@ $customer->save(); // equivalent to $customer->insert(); $customer = Customer::find($id); $customer->email = 'james@example.com'; $customer->save(); // equivalent to $customer->update(); +// Note that model attributes will be validated first and +// model will not be saved unless valid. // to delete an existing customer record $customer = Customer::find($id);