QuickBlox custom table -- Create relation and getting related records on iOS -


how create relation between 2 custom tables ios sdk?

do set parentid on qbcocustomobject create it?

on rest doc there way multiple related records, how do quickblox ios sdk?

there parentid field.

how works: example have 2 entities: movies & comments. each comment has parentid=movieid. if delete movie - comments deleted also.

to related records use extendedrequest param

nsmutabledictionary *getrequest = [nsmutabledictionary dictionary]; [getrequest setobject:@"31212412a1269123" forkey:@"_parent_id"];  [qbcustomobjects objectswithclassname:@"comment" extendedrequest:getrequest delegate:self]; 

Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -