Symfony PropertyAccessor

2020-10-18  本文已影响0人  forks1990

Update array like property

Two method:

  1. use setter method to replace the whole array object
  2. use adder, remover help method to merge the two collection

It will failed with fowling exception if no setter and no adder/'remover` methods:

Could not determine access type for property "PropertyName" in class "App\Foo\BarClass".
上一篇下一篇

猜你喜欢

热点阅读