ModelChoiceList::getIndicesForChoices()

array getIndicesForChoices(array $models) deprecated

deprecated

Deprecated since version 2.4, to be removed in 3.0.

Returns the indices corresponding to the given choices.

The indices must be positive integers or strings accepted by {@link FormConfigBuilder::validateName()}.

The index "placeholder" is internally reserved.

The indices must be returned with the same keys and in the same order as the corresponding choices in the given array.

Parameters

array $models

Return Value

array An array of indices with ascending, 0-based numeric keys
doc_Symfony
2016-10-28 06:23:55
Comments
Leave a Comment

Please login to continue.