Hi,
is there a way that when an object is removed all the objects that reference it (via linked property) can be removed too? Similar to e.g. on delete cascade in relational database? Or to have at least not nullable properties, such that it crashes or something the moment it's nulled?
I have some problems with this, I'm removing all the references manually but it seems I forgot to do this in some places (or something else?). Some linked properties sometimes become nil. It's difficult to debug since the moment the property is nulled I don't see it, only when obj tries to access it.
I have also getters to avoid handling optional properties everywhere, where I return a default "empty" objects when it's nil, which makes things even more difficult to debug since I get the errors much later during some specific operations.
Thanks,
Ivan