$command = (new Command\Builder\FetchObject($riak)) ->buildLocation($user_id, 'users', 'default') ->build(); $response = $command->execute(); $user = $response->getObject();
Наследование: extends Basho\Riak\Command\Builder, implements Basho\Riak\Command\BuilderInterface, use trait ObjectTrait, use trait Basho\Riak\Command\Builder\LocationTrait
Пример #1
0
 /**
  * Tests validate properly verifies the Object is not there
  *
  * @expectedException \Basho\Riak\Command\Builder\Exception
  */
 public function testValidateLocation()
 {
     $builder = new Command\Builder\FetchObject(static::$riak);
     $builder->buildBucket('some_bucket');
     $builder->build();
 }