Skip to content

Commit

Permalink
working dummy PHP sample and region, replace with real sample when av…
Browse files Browse the repository at this point in the history
…ailable
  • Loading branch information
reebhub committed Jul 23, 2024
1 parent e663632 commit 0f6f4f6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Documentation/5.4/Samples/php/ClientApi/session/phpSample.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# region php_region
$session = DocumentStoreHolder::getStore()->openSession();
try {
$company = $session->load(Company::class, "companies/5-A");

$company->setName($companyName);

$session->saveChanges();

} finally {
$session->close();
}
# endregion

0 comments on commit 0f6f4f6

Please sign in to comment.