ENTRY_ID
ENTRY_ID
Collection id index
Value object representing a collection
__construct() : \triagens\ArangoDb\Collection
Constructs an empty collection
createFromArray(array $values) : \triagens\ArangoDb\Collection
Factory method to construct a new collection
array | $values |
|
set(string $key, mixed $value) : void
Set a collection attribute
The key (attribute name) must be a string.
This will validate the value of the attribute and might throw an exception if the value is invalid.
string | $key |
|
mixed | $value |
|
getId() : mixed
Get the collection id (if already known)
Collection ids are generated on the server only.
Collection ids are numeric but might be bigger than PHP_INT_MAX. To reliably store a collection id elsewhere, a PHP string should be used
setType(integer $type) : void
Set the collection type.
This is useful before a collection is create() 'ed in order to set a different type than the normal one. For example this must be set to 3 in order to create an edge-collection.
integer | $type |
|
setStatus(integer $status) : void
Set the collection status.
This is useful before a collection is create()'ed in order to set a status.
integer | $status |
|