parse.com-php-library icon indicating copy to clipboard operation
parse.com-php-library copied to clipboard

matches query in parse php

Open manojvelyalan opened this issue 10 years ago • 0 comments
trafficstars

Hi, I have two classes Request and _user.I want to match aasignedUser field from Request to _user.My code is below

  $query = new \Parse\ParseQuery("Requests");
    $query->equalTo('assignedUser',$currentUser);
        $innerQuery = new \Parse\ParseQuery("_User");
        $innerQuery->equalTo('email', $email);
        $query->matchesQuery("assignedUser", $innerQuery);
    $query->descending("createdAt");
    $results = $query->find();       
    return $results;

I am getting the following error.. Fatal error: Cannot use object of type Parse\ParseUser as array in C:\xampp\htdocs\src\Parse\ParseQuery.php on line 103

manojvelyalan avatar Apr 16 '15 12:04 manojvelyalan