Exemplo n.º 1
0
 /**
  * Query on the parent class where child is in the relation
  *
  * @param Object $child  Child object
  * @return Query
  */
 public function getReverseQuery(Object $child)
 {
     $query = new Query($this->parent->getClassName());
     $query->equalTo($this->key, $child->getPointer());
     return $query;
 }