EntityType
extends DoctrineType
in package
Table of Contents
- $registry : ManagerRegistry
- $choiceLoaders : array<string|int, DoctrineChoiceLoader>
- $idReaders : array<string|int, IdReader>
- __construct() : mixed
- buildForm() : mixed
- Builds the form.
- buildView() : mixed
- Builds the form view.
- configureOptions() : mixed
- Configures the options for this type.
- finishView() : mixed
- Finishes the form view.
- getBlockPrefix() : mixed
- {@inheritdoc}
- getLoader() : ORMQueryBuilderLoader
- Return the default loader object.
- getParent() : string|null
- Returns the name of the parent type.
- reset() : mixed
- parameterToArray() : array<string|int, mixed>
- Converts a query parameter to an array.
Properties
$registry
protected
ManagerRegistry
$registry
$choiceLoaders
private
array<string|int, DoctrineChoiceLoader>
$choiceLoaders
= []
$idReaders
private
array<string|int, IdReader>
$idReaders
= []
Methods
__construct()
public
__construct(ManagerRegistry $registry) : mixed
Parameters
- $registry : ManagerRegistry
Return values
mixed —buildForm()
Builds the form.
public
buildForm(FormBuilderInterface $builder, array<string|int, mixed> $options) : mixed
Parameters
- $builder : FormBuilderInterface
- $options : array<string|int, mixed>
Return values
mixed —buildView()
Builds the form view.
public
buildView(FormView $view, FormInterface $form, array<string|int, mixed> $options) : mixed
Parameters
- $view : FormView
- $form : FormInterface
- $options : array<string|int, mixed>
Return values
mixed —configureOptions()
Configures the options for this type.
public
configureOptions(OptionsResolver $resolver) : mixed
Parameters
- $resolver : OptionsResolver
Return values
mixed —finishView()
Finishes the form view.
public
finishView(FormView $view, FormInterface $form, array<string|int, mixed> $options) : mixed
Parameters
- $view : FormView
- $form : FormInterface
- $options : array<string|int, mixed>
Return values
mixed —getBlockPrefix()
{@inheritdoc}
public
getBlockPrefix() : mixed
Return values
mixed —getLoader()
Return the default loader object.
public
getLoader(ObjectManager $manager, QueryBuilder $queryBuilder, string $class) : ORMQueryBuilderLoader
Parameters
- $manager : ObjectManager
- $queryBuilder : QueryBuilder
- $class : string
Return values
ORMQueryBuilderLoader —getParent()
Returns the name of the parent type.
public
getParent() : string|null
Return values
string|null —The name of the parent type if any, null otherwise
reset()
public
reset() : mixed
Return values
mixed —parameterToArray()
Converts a query parameter to an array.
private
parameterToArray(Parameter $parameter) : array<string|int, mixed>
Parameters
- $parameter : Parameter