Skip to content
This repository was archived by the owner on Feb 25, 2018. It is now read-only.
This repository was archived by the owner on Feb 25, 2018. It is now read-only.

matches query in parse php #170

@manojvelyalan

Description

@manojvelyalan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions