美文网首页
Symfony PropertyAccessor

Symfony PropertyAccessor

作者: forks1990 | 来源:发表于2020-10-18 17:19 被阅读0次

    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".
    

    相关文章

      网友评论

          本文标题:Symfony PropertyAccessor

          本文链接:https://www.haomeiwen.com/subject/ypucmktx.html