Permalink
Browse files

Merge pull request #172 from chaos0815/patch-1

Update documentation/05-validators.markdown typo
  • Loading branch information...
2 parents a42afd9 + adec988 commit bddd2626c1c73123edad2c2697e479ad9f69092d @willdurand willdurand committed Oct 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 documentation/05-validators.markdown
@@ -32,7 +32,7 @@ At runtime, you can validate an instance of the model by calling the `validate()
<?php
$user = new User();
$user->setUsername("foo"); // only 3 in length, which is too short...
-if ($objUser->validate()) {
+if ($user->validate()) {
// no validation errors, so the data can be persisted
$user->save();
} else {

0 comments on commit bddd262

Please sign in to comment.