From 8c18feb1b54ac2370a703c63f8c2335234d6d1d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anderson=20M=C3=BCller?= Date: Tue, 7 May 2013 14:11:52 +0300 Subject: [PATCH] Fixes the variable name --- docs/guide/upgrade-from-v1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/upgrade-from-v1.md b/docs/guide/upgrade-from-v1.md index b6e5d52..d35e6e0 100644 --- a/docs/guide/upgrade-from-v1.md +++ b/docs/guide/upgrade-from-v1.md @@ -204,7 +204,7 @@ $model = new Post; if ($this->populate($_POST, $model)) {...} // which is equivalent to: if (isset($_POST['Post'])) { - $post->attributes = $_POST['Post']; + $model->attributes = $_POST['Post']; } ```