GDS\Store::fetchEntityGroup PHP Method

fetchEntityGroup() public method

Fetch all of the entities in a particular group
public fetchEntityGroup ( Entity $obj_entity ) : Entity[]
$obj_entity Entity
return Entity[]
    public function fetchEntityGroup(Entity $obj_entity)
    {
        $arr_results = $this->obj_gateway->withSchema($this->obj_schema)->withTransaction($this->str_transaction_id)->gql("SELECT * FROM `" . $this->obj_schema->getKind() . "` WHERE __key__ HAS ANCESTOR @ancestorKey", ['ancestorKey' => $obj_entity]);
        $this->str_last_cursor = $this->obj_gateway->getEndCursor();
        return $arr_results;
    }