I'm currently using the PHP library of Parse SDK and i would like to do an equalTo query on the relation object of a row.
Basically, get all the Lines where relation class LineData column 'status' = 1.
Does anyone have any idea on how to achieve this? I can't find anything in the official docs or a google search.
$query = new ParseQuery("Lines");
$innerQuery = $query->get("LineData")->getQuery()->find();
$innerQuery->equalTo("status", ['__type' => "Pointer", 'className'=> "States", 'objectId' => "XvGh5HkSAw"]);
$results = $innerQuery->find();
return $results;
Any help would be greatly appreciated. Thanks