Symfony\Component\Form\Extension\Core\ChoiceList\ObjectChoiceList::createValue
Creates a new unique value for this choice.
If a property path for the value was given at object creation, the getter behind that path is now called to obtain a new value. Otherwise a new integer is generated.
Signature
protected function createValue(mixed
$choice )
Parameters
$choice
— mixed- The choice to create a value for
Returns
- integer|string
- A unique value without character limitations.