Tagged Questions
0
votes
0answers
14 views
How to update embedded document in MongoDB with Doctrine ODM
I'm unable to find how to update embedded documents with Doctrine Mongo ODM in Symfony2. I have a class called Page with many embedded documents "Comments" and I want to use createQueryBuilder to ...
1
vote
1answer
35 views
Mongo 2.4.1 upgrade causing Fatal error: Class 'Doctrine\MongoDB\Util\InvalidArgumentException' not found
I had everything working and I upgraded my mac ports on my mac to get the latest packages. It installed Mongo 2.4.1 and I also got boost @1.53.0_1+no_single+no_static+python27. Now when I try ...
1
vote
1answer
45 views
Changing the MongoDB collection on run time in symfony2 + doctrine
I'm using Symfony2 MongoDB + Doctrine and I want to tell doctrine to save my objects in collections with different name from the name of the class that defines the object. Also the name of the new ...
1
vote
0answers
90 views
'MongoCursor' not found in Doctrine/Bundle/MongoDBBundle/DependencyInjection/Configuration.php
I am writing some unit tests for some services I have on my Symfony2 project. I need to access the services via the service container and I am using this approach:
class DummyTest extends ...
0
votes
2answers
159 views
Sort by reference document in Doctrine MongoDB ODM
I'm using DoctrineMongoDBOBundle with Symfony2.
I've a Document Product which has an annotation referenceOne to other Document Price.
I want to sort by price when I fetch with queryBuilder.
$qb = ...
1
vote
1answer
302 views
PHP dies when Doctrine MongoDB ODM performs successful file query
I am working on a Symfony2 project using Doctrine and MongoDB. To say the least, everything has been working great, until today when I uncovered a problem.
Queries that return one or more ...
2
votes
0answers
282 views
Querying by nested references values in mongodb / doctrine2 odm
Hello ive got the following code:
$primer = function($dm, $className, $fieldName, $ids, $hints) {
$repository = $dm->getRepository($className);
$qb = ...
1
vote
1answer
357 views
Doctrine2 Mongodb adding more $or operator
It is possible for doctrine2 ODM to create the following query?
db.Product.find({ "$or": [ { "name": new RegExp("test*", "i") }, { "tags": new RegExp("public true*", "i") } ], "$or": [{ "public": ...