class RolesType extends AbstractType (View source)

Roles selector form field type.

Properties

protected Collection|null $roles

Methods

__construct(EntityManager $entityManager, Collection $roles = null)

No description

configureOptions(OptionsResolver $resolver)

[email protected]}

getParent()

[email protected]}

getName()

[email protected]}

Details

__construct(EntityManager $entityManager, Collection $roles = null)

Parameters

EntityManager $entityManager
Collection $roles Existing roles name array (used to display only available roles to parent entity)

configureOptions(OptionsResolver $resolver)

[email protected]}

Parameters

OptionsResolver $resolver

getParent()

[email protected]}

getName()

[email protected]}