Looking at the code you've provided, I think you have a misconception
about Core Data.
It looks like you are trying to get all the events related to a profile.
You don't need to create ond perform a fetch request for this. Core Data is
an object graph. Which means that if you have an object in an a managed
object context, you get its related objects via it's relationships, you
don't need to run a fetch request.