FormFactoryInterface::createForProperty()

FormInterface createForProperty(string $class, string $property, mixed $data = null, array $options = array())

Returns a form for a property of a class.

Parameters

string $class The fully qualified class name
string $property The name of the property to guess for
mixed $data The initial data
array $options The options for the builder

Return Value

FormInterface The form named after the property

Exceptions

InvalidOptionsException if any given option is not applicable to the form type

See also

createBuilderForProperty()
doc_Symfony
2016-10-28 06:18:46
Comments
Leave a Comment

Please login to continue.