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