Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList::createIndex
Creates a new unique index for this entity.
If the entity has a single-field identifier, this identifier is used. Otherwise a new integer is generated.
Signature
protected function createIndex(mixed
$entity )
Parameters
$entity
— mixed- The choice to create an index for
Returns
- integer|string
- A unique index containing only ASCII letters,
digits and underscores.