Symfony form: customize the setter that is called

后端 未结 2 1600
死守一世寂寞
死守一世寂寞 2021-01-13 01:36

I have a Symfony form custom type for an entity.

I want to customize the code that is executed when the form is submitted, but only for a field.

For example,

2条回答
  •  無奈伤痛
    2021-01-13 02:20

    Check this post about DataMapper (it starts from explaining Value Objects, but link will scroll down to Data Mappers header directly). It's very useful but missed in Symfony docs.

提交回复
热议问题