I want to do some simple deletion with Core data, but you just need some tips on this.
I have a model with transactions, names, events, and date entities. A transaction has a connection with each of the other Entities.
In the application, when the user adds information to the text fields, he is saved in the table view controller with 4 tabs.
The first tab uses an NSFetchedResultController with fetchRequest in the transaction entity. The second tab uses the Entity Name, the third uses the Event, and the fourth uses the Date Entity.
If I delete an entry from the Transaction tab, it will delete that particular transaction, which makes sense.
What I want is to remove the person from the "Name" tab or the event from the "Event" tab and make it a cascade through the application model. Therefore, if Bob has several transactions, deleting him, the transaction tab will delete this transaction.
If I remove the BOB from the name tab, it must remove it from each event that was part with each date and transaction.
The same applies to events and dates.
EDIT: update to include data model
Note: Year Entity is experimental and not currently in use.
How can I do something like this?
thanks