Skip to content

Commit 4d2c926

Browse files
committed
Make samples work cut'n'pasteable
1 parent ddec905 commit 4d2c926

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
@@ -269,11 +269,11 @@ So, after we get the settings, we can start with creating a collection. We will
269269
The below code will first set up the collection locally in a variable name $user, and then push it to the server and return the collection id created by the server:
270270

271271
```php
272-
$collectionHandler = new CollectionHandler($connection);
272+
$collectionHandler = new triagens\ArangoDb\CollectionHandler($connection);
273273

274274
// create a new document
275-
$userCollection = new ArangoCollection();
276-
$userCollection->setName('user');
275+
$userCollection = new triagens\ArangoDb\Collection();
276+
$userCollection->setName('users');
277277
$id = $collectionHandler->add($userCollection);
278278

279279
// print the collection id created by the server

0 commit comments

Comments
 (0)