Skip to content

Commit 52271e3

Browse files
authored
[make:crud] use save instead of add in upgradePassword (#1209)
1 parent 682ce4f commit 52271e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/skeleton/doctrine/Repository.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function upgradePassword(<?= sprintf('%s ', $password_upgrade_user_interf
5151

5252
$user->setPassword($newHashedPassword);
5353

54-
$this->add($user, true);
54+
$this->save($user, true);
5555
}
5656

5757
<?php endif ?>

0 commit comments

Comments
 (0)