Create genderEnum, add genderTranslation property to Gender entity and new gender property to Person entity

Also migrations were created to handle the changes in the database.
This commit is contained in:
2024-09-26 12:20:36 +02:00
parent f428afc7ca
commit b78f0980f5
5 changed files with 135 additions and 18 deletions

View File

@@ -0,0 +1,11 @@
<?php
namespace Chill\MainBundle\Entity;
enum GenderEnum : string
{
case MALE = 'man';
case FEMALE = 'woman';
case NEUTRAL = 'neutral';
case UNKNOWN = 'unknown';
}