Is there a way to update an object\'s property in twig?
An object like the following is passed to twig:
object property1 property2
Twig has a do tag that allows you to do that.
{% do foo.setBar(value) %}