Is there a way to update an object\'s property in twig?
An object like the following is passed to twig:
object property1 property2
You can do it by merging objects:
{% set object = object|merge({'property1': 'somenewvalue'}) %}