public function matchesKeyInQuery($key, $queryKey, $query)
    {
        $queryParam = $query->_getOptions();
        $queryParam["className"] = $query->className;
        $this->addCondition($key, '$select', ['key' => $queryKey, 'query' => $queryParam]);

        return $this;
    }
public function matchesKeyInQuery($key, $queryKey, $query)
    {
        $queryParam = $query->_getOptions();
        $queryParam["className"] = $query->className;
        $this->addCondition($key, '$select', ['key' => $queryKey, 'query' => $queryParam]);

        return $this;
    }
public function matchesKeyInQuery ( $ key , $ queryKey , $ query ) { $ queryParam = $ query -> _getOptions ( ) ; $ queryParam [ "className" ] = $ query -> className ; $ this -> addCondition ( $ key , '$select' , [ 'key' => $ queryKey , 'query' => $ queryParam ] ) ; return $ this ; }
Add a constraint that requires that a key's value matches a value in an
object returned by the given query.

@param string $key The key that contains teh value that is being
matched.
@param string $queryKey The key in objects returned by the query to
match against.
@param AVQuery $query The query to run.

@return AVQuery Returns the query, so you can chain this call.
Add a constraint that requires that a key s value matches a value in an object returned by the given query .