Browse files

Only mapped fields need to be protected

  • Loading branch information...
1 parent 59fdfe9 commit f6dc2eeb1c4ce2cb6da88b45077c01dbd57ca78f @mariano committed Jan 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
2 README.md
@@ -104,7 +104,7 @@ class User extends \li3_doctrine2\models\BaseEntity {
/**
* Validation rules
*/
- private $validates = array(
+ protected $validates = array(
'email' => array(
'required' => array('notEmpty', 'message' => 'Email is required'),
'valid' => array('email', 'message' => 'You must specify a valid email address', 'skipEmpty' => true)

0 comments on commit f6dc2ee

Please sign in to comment.