Added documentation regarding the newly public timestamp() function

Signed-off-by: Callum McIntyre <mcintyre1994@gmail.com>
This commit is contained in:
Callum McIntyre 2012-09-03 23:23:36 +01:00
parent 0161273010
commit c8ee7ca614
1 changed files with 7 additions and 0 deletions

View File

@ -137,6 +137,13 @@ ## Inserting & Updating Models
$comment = Comment::find(1);
$comment->touch();
You can also use the **timestamp** function to update the **updated_at** date column without saving the model immediately. Note that if you are actually modifying the model's data this is handled behind the scenes:
$comment = Comment::find(1);
$comment->timestamp();
//do something else here, but not modifying the $comment model data
$comment->save();
> **Note:** You can change the default timezone of your application in the **application/config/application.php** file.
<a name="relationships"></a>