<?php
namespace App\Form;
use App\Entity\PublicationAuthor;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class PublicationAuthorType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
//->add('firstname')
//->add('lastname')
->add('participation', null, ['label' => false])
//->add('externalAuthor')
//->add('author')
//->add('organizations')
->add('masterStudent',null, ['label' => 'Estudiante de Magister'])
->add('phdStudent',null, ['label' => 'Estudiante de Doctorado'])
->add('ucNotIng',null, ['label' => 'Profesor de otra facultad UC'])
->add('postdoc',null, ['label' => 'Postdoctorado'])
;
}
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults([
'data_class' => PublicationAuthor::class,
]);
}
}