Sorry, but the information you provided does not help. For example:
It is not clear what object id is being assigned to activity.status
it is not clear from the screenshots what tables they show (why do you crop the screenshots anyway? it makes it harder to understand what you're showing)
Activity.status is relation to Status class
screenshot seems cannot delete
i got the status class objectId but when i do the above code it seems like there is nothing being uploaded .
relation seems like cannot be upload direct through objectId , self.loadLIkes[sender.tag].3 is and objectId String so , i uses var assign it to Status Class and set it objectId then assign it to activity.status . It seems like it is working this way haha
This is my class as you can see . I just wanna upload a relation from activity.status which is an existing status object in status class. As you can see if i use
activity.status.objectId = self.loadLikes[sender.tag].3 // An object ID
the status relation object is nil in the database table
And this my database class am i doing it correct ?
class Activity : NSObject {
var fromUser : BackendlessUser?
var toUser : BackendlessUser?
var status : Status?
var type : String?
var objectId : String?
var created : NSDate?
var updated : NSDate?
var ownerId : String?
}
class Status : NSObject {
var objectId : String?
var ownerId : String?
var status : String?
var user : BackendlessUser?
var created : NSDate?
}