Example #1
0
 /**
  * Gets a query that can be used to query the objects in this relation.
  *
  * @return ParseQuery That restricts the results to objects in this relations.
  */
 public function getQuery()
 {
     $query = new ParseQuery($this->targetClassName);
     $query->relatedTo('object', $this->parent->_toPointer());
     $query->relatedTo('key', $this->key);
     return $query;
 }