public function getQuery()
    {
        $query = new AVQuery($this->targetClassName);
        $query->relatedTo('object', $this->parent->_toPointer());
        $query->relatedTo('key', $this->key);

        return $query;
    }