iOS get related data

i create data:
Class1 *c1=[[Class1 alloc] init];
Class2 *c2=[[Class2 alloc]init];
c1.c2=c2;
[backendless.persistenceService save:c1];

but if i get data of Class1 table related object c2 is nil:
collection BackendlessCollection * 0xb431090 0x0b431090
NSObject NSObject
data __NSArrayM * @“1 objects” 0x0b4319d0
[0] Class1 * 0x0b42e4b0 0x0b42e4b0
NSObject NSObject
c2* nil 0x00000000

How i get related data c2?

Hello,

You can use the “related” property on the QueryOptions object and add “c2” to the array there. QueryOptions goes right into BackendlessDataQuery. See the doc for more details:

http://backendless.com/documentation/data/ios/data_search_and_query.htm

Regards,
Mark