I already check this [post](https://stackoverflow.com/questions/7719838/updating-object-properties-in-twig)

I have a similar problem

I have a variable object with attributes others objects

so I Have the main object and I want put null to one of their properties

I tried this options but they fail of course, before each line I put the error that give me

```
set object.other = null
--------------------------------------
Unexpected token "punctuation" of value "." ("end of statement block" expected) 

set object["other"] = null
--------------------------------------
Unexpected token "punctuation" of value "[" ("end of statement block" expected)

set (object, 'other', null)
--------------------------------------
Only variables can be assigned to. Unexpected token "punctuation" of value "(" ("name" expected) 

set object = object|merge({'other',null})
--------------------------------------
The merge filter only works with arrays or "Traversable", got "object" as first argument

```

Please Help