Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList::createValue
Creates a new unique value for this entity.
If the entity has a single-field identifier, this identifier is used. Otherwise a new integer is generated.
Signature
protected function createValue(mixed
$entity )
Parameters
$entity
— mixed- The choice to create a value for
Returns
- integer|string
- A unique value without character limitations.