ViolationMapper

ViolationMapper

class ViolationMapper implements ViolationMapperInterface

Methods

mapViolation(ConstraintViolation $violation, FormInterface $form, bool $allowNonSynchronized = false)

Maps a constraint violation to a form in the form tree under the given form.

Details

mapViolation(ConstraintViolation $violation, FormInterface $form, bool $allowNonSynchronized = false)

Maps a constraint violation to a form in the form tree under the given form.

Parameters

ConstraintViolation $violation The violation to map
FormInterface $form The root form of the tree to map it to.
bool $allowNonSynchronized Whether to allow mapping to non-synchronized forms.
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部