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

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

        return $this;
    }
public function matchesQuery ( $ key , $ query ) { $ queryParam = $ query -> _getOptions ( ) ; $ queryParam [ "className" ] = $ query -> className ; $ this -> addCondition ( $ key , '$inQuery' , $ queryParam ) ; return $ this ; }
Add a constraint that requires that a key's value matches a AVQuery
constraint.

@param string $key The key that the contains the object to match
the query.
@param AVQuery $query The query that should match.

@return AVQuery Returns the query, so you can chain this call.
Add a constraint that requires that a key s value matches a AVQuery constraint .