Skip to content

Commit

Permalink
Update datastore README example. (#221)
Browse files Browse the repository at this point in the history
* Update datastore README example.

* Resolve code review
  • Loading branch information
jdpedrie authored Nov 10, 2016
1 parent 638443d commit 0d8dd65
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ $bob['firstName'] = 'Bob';
$bob['email'] = '[email protected]';
$datastore->insert($bob);

// Fetch an entity
$key = $datastore->key('Person', 'Bob');
$bob = $datastore->lookup($key);

// Update an entity
$bob['email'] = '[email protected]';
// Update the entity
$bob['email'] = '[email protected]';
$datastore->update($bob);

// If you know the ID of the entity, you can look it up
$key = $datastore->key('Person', '12345328897844');
$entity = $datastore->lookup($key);
```

## Google Cloud Natural Language
Expand Down Expand Up @@ -356,7 +356,7 @@ require 'vendor/autoload.php';
use Google\Cloud\Storage\StorageClient;
use Symfony\Component\Cache\Adapter\ArrayAdapter;

// Please take the proper precautions when storing your access tokens in a cache no matter the implementation.
// Please take the proper precautions when storing your access tokens in a cache no matter the implementation.
$cache = new ArrayAdapter();

$storage = new StorageClient([
Expand Down

0 comments on commit 0d8dd65

Please sign in to comment.