Closed saschasalles closed 3 years ago
I found the solution ... it's a little bit strange behaviour 😅
You must do:
addressBlock.register = [register1]
and not:
addressBlock.register.append(register1)
By doing this we can safely add an object without populate other objects of the same type. Sascha
Hello @olofk,
I use your library in my company, and I'm new to it. I noticed with surprise that if we add an object to another object that contains a children property then each object of that type will have the child in question.
Can an object that contains children have its own objects? Or am I using your library wrong?
Here is an example that illustrates my problem :
generate this :
In this case I don't want my
addressBlock2
to contain myregister1
.Thank you in advance for your help, Best Regards, Sascha Salles