diff --git a/docs/guide/upgrade-from-v1.md b/docs/guide/upgrade-from-v1.md index 1e044cd..d065a4d 100644 --- a/docs/guide/upgrade-from-v1.md +++ b/docs/guide/upgrade-from-v1.md @@ -195,7 +195,7 @@ A new method called `populate()` is introduced to simplify the data population f to a model. For example, ~~~ -$post = new Post; +$model = new Post; if ($this->populate($_POST, $model)) {...} // which is equivalent to: if (isset($_POST['Post'])) {