mongodb
mongodb copied to clipboard
PHP MongoDB Abstraction Layer
This library relies on doctrine/common repository. Even tough this library is deprecated, would it still be possible to drop the doctrine/common dependency in favor of the replacement repositories like doctrine/collections...
Good day: When making a query of the type $ document = $ this-> manager-> createQueryBuilder (Physical Document :: class) -> field ('id') -> equals ($ id) -> getQuery ()...
Cannot create a collection via[ Doctrine\MongoDB\Database::createCollection()](https://github.com/doctrine/mongodb/blob/ecf566b1f753f113ed60c8db53a1134b1de59309/lib/Doctrine/MongoDB/Database.php#L115) because in this method 'max' and 'size' fields are explicitly set to 0. ```php $options = is_array($cappedOrOptions) ? array_merge(['capped' => false, 'size' => 0,...
Hi, I want to use the bundle doctrine/mongodb-odm-bundle but composer is failing on installing because it requires ext-mongo but it's ext-mongodb. Other doctrine repo's that is using this repo are...
After upgrading to `1.6.4` from `1.6.3` I'm getting the following exception: `ErrorException: Notice: Undefined index: _id`. ```php $builder ->hydrate(AlgoRegister::class) ->match() ->field('patientCenterId')->equals($patientCenterId) ->field('doctorCenterId')->exists(true) ->sort('created', 'desc') ->group() ->field('id') ->expression('$projectId') ->field('algoRegister') ->first('$$ROOT') ->replaceRoot()...
`The "Doctrine\MongoDB\LoggableCollection::aggregate()" method will require a new "array $op" argument in the next major version of its parent class "Doctrine\MongoDB\Collection", not defining it is deprecated.`
Hi got error MongoDb version 3.6.1 > CRITICAL - Uncaught PHP Exception Doctrine\MongoDB\Exception\ResultException: "The 'cursor' option is required, except for aggregate with the explain argument" at /var/www/html/vendor/doctrine/mongodb/lib/Doctrine/MongoDB/Collection.php
Hello, I'm trying to install the package in my project with (PHP 7.1 on MacOSX with brew package manager). I get an error about version of mongo library. `doctrine/mongodb` requires...
Hi, ```php $documentManager ->getDocumentCollection(Cuisine::class) ->aggregate([ [ '$match' => [] ], ]); ``` Throws `Doctrine\MongoDB\Exception\ResultException`, while the following command is fine in MongoDB: ```json db.getCollection('cuisines').aggregate([ { $match: {} }] ) ```...
`jmikola/geojson` should be inside require because it is used inside `doctrine/mongodb/lib/Doctrine/MongoDB/Aggregation/Stage/Match.php` and causes errors PHP Fatal error: Uncaught InvalidArgumentException: Could not get class storage for geojson\geometry\geometry while running `php vendor/bin/psalm`