mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Merge branch 'master' into 111_exports_suite
This commit is contained in:
commit
01acfeb58f
@ -35,6 +35,11 @@ class MaritalStatus
|
||||
*/
|
||||
private array $name;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->id = substr(md5(uniqid()), 0, 7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id.
|
||||
*/
|
||||
|
@ -14,7 +14,6 @@ namespace Chill\PersonBundle\Form;
|
||||
use Chill\MainBundle\Form\Type\TranslatableStringFormType;
|
||||
use Chill\PersonBundle\Entity\MaritalStatus;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
@ -26,9 +25,6 @@ class MaritalStatusType extends AbstractType
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder
|
||||
->add('id', TextType::class, [
|
||||
'label' => 'Identifiant',
|
||||
])
|
||||
->add('name', TranslatableStringFormType::class, [
|
||||
'label' => 'Nom',
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user