Example #1
0
 /**
  * Add a constraint that requires that a key's value not match a value in an
  * object returned by the given query.
  *
  * @param string     $key      The key that contains teh value that is being
  *                             excluded.
  * @param string     $queryKey The key in objects returned by the query to
  *                             match against.
  * @param ParseQuery $query    The query to run.
  *
  * @return ParseQuery Returns the query, so you can chain this call.
  */
 public function doesNotMatchKeyInQuery($key, $queryKey, $query)
 {
     $queryParam = $query->_getOptions();
     $queryParam['className'] = $query->className;
     $this->addCondition($key, '$dontSelect', ['key' => $queryKey, 'query' => $queryParam]);
     return $this;
 }