Свойство | Тип | Описание | |
---|---|---|---|
$collection | MongoCollection |
Метод | Описание | |
---|---|---|
__construct ( MongoCollection $collection ) | ||
create ( array | object $data ) : array | Create a new document in the MongoCollection | |
delete ( string $id ) : boolean | Delete a document in a collection | |
fetch ( string $id ) : array | ZF\ApiProblem\ApiProblem | Fetch data in a collection using the id | |
fetchAll ( array $params = [] ) : array | Fetch all data in a collection | |
patch ( string $id, array $data ) : boolean | Update of a document specified by id |
public __construct ( MongoCollection $collection ) | ||
$collection | MongoCollection |