Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/Admin/Form/SpecialtyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
])
;
}
Expand Down
1 change: 1 addition & 0 deletions src/Perscom/Entity/Specialty.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down