You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use triagens\ArangoDb\Collection as ArangoCollection;
210
+
use triagens\ArangoDb\CollectionHandler as ArangoCollectionHandler;
209
211
use triagens\ArangoDb\Connection as ArangoConnection;
210
212
use triagens\ArangoDb\ConnectionOptions as ArangoConnectionOptions;
211
213
use triagens\ArangoDb\DocumentHandler as ArangoDocumentHandler;
@@ -269,10 +271,10 @@ So, after we get the settings, we can start with creating a collection. We will
269
271
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:
270
272
271
273
```php
272
-
$collectionHandler = new triagens\ArangoDb\CollectionHandler($connection);
274
+
$collectionHandler = new ArangoCollectionHandler($connection);
273
275
274
276
// create a new document
275
-
$userCollection = new triagens\ArangoDb\Collection();
277
+
$userCollection = new ArangoCollection();
276
278
$userCollection->setName('users');
277
279
$id = $collectionHandler->add($userCollection);
278
280
@@ -470,11 +472,14 @@ Here's the full code that combines all the pieces outlined above:
470
472
471
473
```php
472
474
// use the following line when using packagist/composer
0 commit comments