diff --git a/src/Admin/Form/SpecialtyType.php b/src/Admin/Form/SpecialtyType.php index 8b24847..abb56be 100644 --- a/src/Admin/Form/SpecialtyType.php +++ b/src/Admin/Form/SpecialtyType.php @@ -29,7 +29,6 @@ public function buildForm(FormBuilderInterface $builder, array $options): void ]) ->add('abbreviation', TextType::class, [ 'help' => 'Give this specialty an abbreviation. For example the specialty of a US Infantryman would get the abbreviation of 11B.', - 'required' => false, ]) ; } diff --git a/src/Perscom/Entity/Specialty.php b/src/Perscom/Entity/Specialty.php index 3ad1b7c..d88252b 100644 --- a/src/Perscom/Entity/Specialty.php +++ b/src/Perscom/Entity/Specialty.php @@ -33,6 +33,7 @@ class Specialty implements PerscomEntityInterface, SortableEntityInterface #[ORM\Column(length: 8)] #[Assert\Length(max: 8)] + #[Assert\NotBlank(allowNull: false)] private string $abbreviation = ''; public static function getPerscomResource(Perscom $perscom): Batchable|Crudable