Skip to content

Commit 00a2dfc

Browse files
tim-hanssentransistive
authored andcommitted
Update README.md
Seems to me that the `openTransaction` should be `beginTransaction` on the client level. Error: Call to undefined method Laudis\Neo4j\Client::openTransaction()
1 parent b07124d commit 00a2dfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,19 +152,19 @@ If you need lower-level access to the drivers' capabilities, then you want unman
152152

153153
#### Opening a transaction
154154

155-
The `openTransaction` method will start a transaction with the relevant driver.
155+
The `beginTransaction` method will start a transaction with the relevant driver.
156156

157157
```php
158158
use Laudis\Neo4j\Databags\Statement;
159159

160-
$tsx = $client->openTransaction(
160+
$tsx = $client->beginTransaction(
161161
// This is an optional set of statements to execute while opening the transaction
162162
[Statement::create('MERGE (x:Person({email: $email})', ['email' => '[email protected]'])],
163163
'backup' // This is the optional connection alias
164164
);
165165
```
166166

167-
> Note that `openTransaction` only returns the transaction object, not the results of the provided statements.
167+
> Note that `beginTransaction` only returns the transaction object, not the results of the provided statements.
168168
169169
#### Running statements within a transaction
170170

0 commit comments

Comments
 (0)