Skip to content

Commit

Permalink
Fixing validation syntax with a semicolon on wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
renan committed Mar 30, 2014
1 parent a74e74a commit ca43c6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ORM/Table.php
Expand Up @@ -924,8 +924,8 @@ public function updateAll($fields, $conditions) {
* public function validationForSubscription($validator) {
* return $validator
* ->add('email', 'valid-email', ['rule' => 'email'])
* ->add('password', 'valid', ['rule' => 'notEmpty']);
* ->validatePresence('username')
* ->add('password', 'valid', ['rule' => 'notEmpty'])
* ->validatePresence('username');
* }
* }}}
*
Expand Down

0 comments on commit ca43c6a

Please sign in to comment.