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.