ViolationPath::mapsForm()

bool mapsForm(int $index)

Returns whether an element maps directly to a form.

Consider the following violation path:

children[address].children[office].data.street

In this example, "address" and "office" map to forms, while "street does not.

Parameters

int $index The element index

Return Value

bool Whether the element maps to a form

Exceptions

OutOfBoundsException If the offset is invalid.
doc_Symfony
2016-10-28 06:37:07
Comments
Leave a Comment

Please login to continue.