You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Maker/MakeRegistrationForm.php
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -372,7 +372,10 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
372
372
$userManipulator->setIo($io);
373
373
374
374
if ($this->doctrineHelper->isDoctrineSupportingAttributes()) {
375
-
$userManipulator->addAttributeToClass(newClassNameDetails(UniqueEntity::class, '\\', null), ['fields' => [$usernameField], 'message' => sprintf('There is already an account with this %s', $usernameField)]);
375
+
$userManipulator->addAttributeToClass(
376
+
UniqueEntity::class,
377
+
['fields' => [$usernameField], 'message' => sprintf('There is already an account with this %s', $usernameField)]
378
+
);
376
379
} else {
377
380
$userManipulator->addAnnotationToClass(
378
381
UniqueEntity::class,
@@ -400,7 +403,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
0 commit comments