Skip to content

Commit

Permalink
Documentation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano committed Jan 6, 2012
1 parent 0db1df1 commit 5e3b410
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -84,27 +84,27 @@ class User extends \li3_doctrine2\models\BaseEntity {
* @GeneratedValue * @GeneratedValue
* @Column(type="integer") * @Column(type="integer")
*/ */
protected $id; private $id;


/** /**
* @Column(type="string",unique=true) * @Column(type="string",unique=true)
*/ */
protected $email; private $email;


/** /**
* @Column(type="text") * @Column(type="text")
*/ */
protected $password; private $password;


/** /**
* @Column(type="string") * @Column(type="string")
*/ */
protected $name; private $name;


/** /**
* Validation rules * Validation rules
*/ */
protected $validates = array( private $validates = array(
'email' => array( 'email' => array(
'required' => array('notEmpty', 'message' => 'Email is required'), 'required' => array('notEmpty', 'message' => 'Email is required'),
'valid' => array('email', 'message' => 'You must specify a valid email address', 'skipEmpty' => true) 'valid' => array('email', 'message' => 'You must specify a valid email address', 'skipEmpty' => true)
Expand Down

0 comments on commit 5e3b410

Please sign in to comment.