Permalink
Browse files

Merge pull request #156 from watermark/patch-2

Modified beforeValidate to be in line with the rest of the callback func...
  • Loading branch information...
2 parents f7b7e8e + b29bb0a commit cb5e898529068b3e73dc8310ed0bfe327ca4a6cc @markstory markstory committed Dec 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 en/models/behaviors.rst
View
@@ -337,7 +337,7 @@ model that the behavior method was invoked on.
your behavior. $created will be true when a record is created, and
false when a record is updated.
-.. php:method:: beforeValidate(&$model)
+.. php:method:: beforeValidate(Model $model)
You can use beforeValidate to modify a model's validate array or
handle any other pre-validation logic. Returning false from a

0 comments on commit cb5e898

Please sign in to comment.