I have an attribute which has a relationship with a sub attribute which has a property as follows :
- to Many
- Cascade Delete Rule
When I navigate to different View Controller, Say B, I am deleting records of the subAttribute and inserting once again with some fresh new records.
And again when I come back to View Controller A and try to insert some Data on the above sub Attribute , it says
"Dangling reference to .null object"
.
Need some help on what am I doing wrong here.
Thanks.