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'];
 }
 ```