diff --git a/Documentation/5.4/Samples/php/ClientApi/session/phpSample.php b/Documentation/5.4/Samples/php/ClientApi/session/phpSample.php new file mode 100644 index 0000000000..dd4e90ad52 --- /dev/null +++ b/Documentation/5.4/Samples/php/ClientApi/session/phpSample.php @@ -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