Relationship is equal to 0

2

I'm new to relationship in core data and I do not know what's going on. I have a many-to-many relationship between the News & Friends entity as shown below:

I created NSManagedobject Subclass but did not change anything (I do not know if this is essential for the relationship to work) and I also think it is not necessary to have this relationship popular since both entities already have data. And I discovered that the relationship is empty using:

let predicateDenuncia = NSPredicate(format: "any amigos.amizade.@count == %d" , 0)
Home and also tried:
let predicateDenuncia = NSPredicate(format: "any amigos.@count == %d" , 0)
This way I found my relationship is returning empty, does anyone know what might be happening? Thank you.     
asked by anonymous 19.10.2016 / 20:34

1 answer

0

I was able to solve this problem .... as I had never messed with relationships in Core Data I did not know that I had to popular the rs relationship now it's working out!

    
04.11.2016 / 19:55