Skip to content

Commit 81c8487

Browse files
fix: [Firestore] change document name to match public docs (GoogleCloudPlatform#1656)
1 parent a10e640 commit 81c8487

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

firestore/src/data_reference_document.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function data_reference_document(string $projectId): void
3838
]);
3939
# [START fs_document_ref]
4040
# [START firestore_data_reference_document]
41-
$document = $db->collection('samples/php/users')->document('lovelace');
41+
$document = $db->collection('samples/php/users')->document('alovelace');
4242
# [END firestore_data_reference_document]
4343
# [END fs_document_ref]
4444
printf('Retrieved document: %s' . PHP_EOL, $document->name());

firestore/src/data_reference_document_path.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function data_reference_document_path(string $projectId): void
3838
]);
3939
# [START fs_document_path_ref]
4040
# [START firestore_data_reference_document_path]
41-
$document = $db->document('users/lovelace');
41+
$document = $db->document('users/alovelace');
4242
# [END firestore_data_reference_document_path]
4343
# [END fs_document_path_ref]
4444
printf('Retrieved document from path: %s' . PHP_EOL, $document->name());

firestore/src/setup_dataset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function setup_dataset(string $projectId): void
3838
]);
3939
# [START fs_add_data_1]
4040
# [START firestore_setup_dataset_pt1]
41-
$docRef = $db->collection('samples/php/users')->document('lovelace');
41+
$docRef = $db->collection('samples/php/users')->document('alovelace');
4242
$docRef->set([
4343
'first' => 'Ada',
4444
'last' => 'Lovelace',

0 commit comments

Comments
 (0)