我很想知道是否有可能基于一个类订购一个解析查询,但是否按另一个类的字段对它进行了订购?
代码是这样的:
$query = new ParseQuery('ClassA');
$query->includeKey('ClassB');
... // more conditions in the middle, equalTo and such
// classb is the name of the column that holds the pointer to classB
$query->ascending('classb.field');
$query->find(); // Parse crashes here
// The Exception Message is the following: Invalid field name: classb_pointer.field.
是因为includeKeys是在查询运行后归档的,还是我做错了什么?