class ModelType extends AbstractType

A Model type for use in Symphony's forms

Methods

__construct(string $type, bool $emptyElem = true, callable|null $modifier = null)

Get a new ModelType

buildForm(FormBuilderInterface $builder, array $options)

No description

buildView(FormView $view, FormInterface $form, array $options)

Render a list of comma-separated usernames for the user to see

configureOptions(OptionsResolver $resolver)

No description

getParent()

No description

getName()

No description

Details

at line line 45
__construct(string $type, bool $emptyElem = true, callable|null $modifier = null)

Get a new ModelType

Parameters

string $type The type of the model
bool $emptyElem Whether to include an empty element in the list
callable|null $modifier A function which modifies the query builder used to fetch the Models

at line line 52
buildForm(FormBuilderInterface $builder, array $options)

Parameters

FormBuilderInterface $builder
array $options

at line line 70
buildView(FormView $view, FormInterface $form, array $options)

Render a list of comma-separated usernames for the user to see

Parameters

FormView $view
FormInterface $form
array $options

at line line 88
configureOptions(OptionsResolver $resolver)

Parameters

OptionsResolver $resolver

at line line 143
getParent()

at line line 148
getName()