-
Notifications
You must be signed in to change notification settings - Fork 13
Add optional note to alias #872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
6494877 to
ce7c663
Compare
|
src/Entity/Alias.php
Outdated
| protected ?string $destination = null; | ||
|
|
||
| #[ORM\Column(length: 255, nullable: true)] | ||
| #[Assert\Length(max: 255)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For whatever reason, we used to do validation directly in the entity. But that's not the typical approach. Form models are designed for that. While this is already incorrect in the existing code, it should be adjusted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I would reduce the validation to 30-50 characters, otherwise we'll have to make adjustments to the design to accommodate a possible 255 characters.



Add an optional note to random aliases during creation to help memorize their purpose
