我有两个表Order和Modifiers。修饰符是Order的指针类。修饰符有一列(名称,价格等)。我希望获得带有顺序的Modifiers的所有值。
代码
PFQuery *queryLocal= [PFQuery queryWithClassName:@"order"];
[queryLocal whereKey:@"order_no" equalTo:orderno];
[queryLocal includeKey:@"modifiers"];
[queryLocal fromLocalDatastore];
[queryLocal findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
if (block) {
block(objects,nil);
}
}];
输出
<modifiers: 0x7a15dc30, objectId: ZgikpV86HB, localId: (null)> {
}
它只给我objectId。有没有办法获得所有价值