$command = (new Command\Builder\FetchMap($riak)) ->buildLocation($order_id, 'online_orders', 'sales_maps') ->build(); $response = $command->execute(); $map = $response->getMap();
Inheritance: extends Basho\Riak\Command\Builder, implements Basho\Riak\Command\BuilderInterface, use trait Basho\Riak\Command\Builder\LocationTrait
Exemplo n.º 1
0
 /**
  * Tests validate properly verifies the Map is not there
  *
  * @dataProvider getLocalNodeConnection
  *
  * @param $riak \Basho\Riak
  *
  * @expectedException \Basho\Riak\Command\Builder\Exception
  */
 public function testValidateLocation($riak)
 {
     $builder = new Command\Builder\FetchMap($riak);
     $builder->buildBucket('some_bucket');
     $builder->build();
 }