itsniper / FTASync

Allows you to sync CoreData entities with a Parse backend.
MIT License
311 stars 59 forks source link

MagicalRecord 2.1 and PFRelations #12

Open akbsteam opened 11 years ago

akbsteam commented 11 years ago

So, I've updated it to MR2.1 and added functionality for PFRelations; with respect to the latter, it is assumed that 1:n, n:1, 1:1 relationships do not use PFRelation and n:n do.

awakia commented 11 years ago

+1

Please merge this code

thenn commented 11 years ago

Andy, great work! I've been trying to integrate your version of FTASync to my own app but I'm having some issues. Parse doesn't allow PFRelation objects to add PFObjects that don't have objectID. So I think you need to save the related PFObject first before adding it to a PFRelation object. It's in the updateRemoteObject method of FTASyncParent just with the // AKB: add mechanism for using PFRelation if n:n comment

alexsaidani commented 11 years ago

@inturbidus has your latest code and @reikubonaga's been merged?