diff --git a/src/ORM/Table.php b/src/ORM/Table.php index ab60e1e5d98..aceaf5fa0ea 100644 --- a/src/ORM/Table.php +++ b/src/ORM/Table.php @@ -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'); * } * }}} *