Skip to content

Commit

Permalink
Use newEmptyEntity() instead of newEntity([])
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraulle committed Apr 15, 2020
1 parent ca068ff commit e73f8ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Traits/RegisterTrait.php
Expand Up @@ -50,7 +50,7 @@ public function register()
}

$usersTable = $this->getUsersTable();
$user = $usersTable->newEntity([]);
$user = $usersTable->newEmptyEntity();
$validateEmail = (bool)Configure::read('Users.Email.validate');
$useTos = (bool)Configure::read('Users.Tos.required');
$tokenExpiration = Configure::read('Users.Token.expiration');
Expand Down

0 comments on commit e73f8ca

Please sign in to comment.