DoctrineType::createChoiceName()

static string createChoiceName(object $choice, int|string $key, string $value)

Creates the field name for a choice.

This method is used to generate field names if the underlying object has a single-column integer ID. In that case, the value of the field is the ID of the object. That ID is also used as field name.

Parameters

object $choice The object
int|string $key The choice key
string $value The choice value. Corresponds to the object's ID here.

Return Value

string The field name
doc_Symfony
2016-10-28 06:14:32
Comments
Leave a Comment

Please login to continue.