doctrine-odm Questions

8

Solved

I'm using doctrine/mongodb 1.0.0-BETA1 in a symfony2.1 install. So i'm trying to force my repository to call data from my database instead of using the object it has cached. $audit = $dm->get...
Charmain asked 7/2, 2013 at 22:0

12

Following the documentation found here I enter php bin/console make:entity Product in Terminal and get the following error: [Symfony\Component\Console\Exception\CommandNotFoundException] There are...
Horatia asked 21/12, 2017 at 1:24

3

Solved

I'm trying to use regular expressions to query Mongodb using Doctrine's Mongodb ODM on Symfony 2. I know the PHP mongo driver can do it. However, I don't know how to do this with Doctrine. Do I u...
Carlitacarlo asked 4/6, 2012 at 6:52

3

Solved

I wonder if there is an equivalent to the MySQL-Query: SELECT COUNT(*) FROM users in MongoDB ODM? This might work: $qb = $this->dm->createQueryBuilder('Documents\Functional\Users'); $qb...
Anacrusis asked 11/6, 2012 at 10:18

6

I'm using this tutorial, which gives a detail explanation about how to set up CodeIgniter and Doctrine. I'm using CodeIgniter 2.1.0 and Doctrine 2.2.1, but I get this error: Fatal error: Call to...
Kavanaugh asked 30/10, 2012 at 15:58

2

Solved

I have an arbitrary MongoDB JSON find query string, for example: { "address.city": "Seattle"} or { qty: { $gt: 5, $lt: 50 } Is there any existing method to create a Doctrine.MongoDB.Query ob...
Diabolo asked 2/2, 2016 at 23:36

3

I have a Symfony 2 application that is using Doctrine MongoDB ODM and I'm trying to get this running with PHP 7. I have installed PHP 7 successfully but installing dependencies through Composer is...
Hungnam asked 1/5, 2016 at 7:24

2

Solved

I want to do the case insensitive check for the query. previously I am using MongoRegex as describe in the this ticket But as per the Php.net this is now deprecated, so can't use it, they suggest t...
Pussy asked 21/4, 2016 at 6:46

5

Solved

How I can with doctrine2 order by array with ids ? I have this query: $qb = $this->createQueryBuilder('u') ->select('u', 'n', 'c') ->leftJoin('u.notifications', 'n') ->leftJoin('u....
Nilgai asked 23/5, 2014 at 16:41

2

Solved

I'm having trouble nesting multiple two-operand $or operations within an $and operation. The conclusion of this discussion sounds similar what I need, but I'm unable to get it to work. Here's JavaS...
Basis asked 11/4, 2012 at 23:19

5

Solved

I'm trying to use the DoctrineMongoDBBundle, however, i'm running into an issue. In my config.yml, I have: doctrine_mongodb: connections: default: server: mongodb://localhost:27017 options: ...
Marquardt asked 15/7, 2011 at 14:43

0

Denormalization of referenced data seems a pretty common practice when using MongoDB. Yet, I do not see any built-in way to handle that with Doctrine MongoDB ODM. Let's say I have a social network...
Chlorophyll asked 15/7, 2015 at 13:3

2

Solved

I'm using symfony2 and mongodb, until today, everything is OK, but I create a new document, and suddenly, appears this error : "MongoException: zero-length keys are not allowed, did you use $ wi...
Superpatriot asked 10/6, 2013 at 13:5

2

How can Doctrine ODM be used to create a one-to-one bi-directional reference that lazy loads while using a field other than the primary key for the reference? I have two collections in MongoDB wit...
Hickey asked 8/1, 2015 at 14:33

2

I have the following Documents: A User document. An embedded document, containing a reference to (see next document) a Site document Each user has an array of embedded documents inside, each re...
Glaive asked 6/3, 2013 at 12:56

5

Solved

Is there a better way to bind data from a doctrine2 ODM entity class to a Zend2 form besides using bind()? If so, what would it be? Would I just retrieve the data as an array and pass each individ...
Cynth asked 23/10, 2012 at 20:6

1

Solved

I have an abstract parent (mapped super-)class which has several children with different properties which I'd like to deserialize. I'm storing the data using MongoDB and Doctrine ODM, so I also ha...

1

Solved

I want to create a Doctrine Query: (Doctrine 2.3) SELECT * FROM `car` WHERE `plate` like '%' AND (`datetime` BETWEEN '2013-03-13 22:20:18' AND '2013-03-13 22:20:20') OR (`datetime` BETWEEN '2013-0...
Toed asked 7/6, 2013 at 8:36

2

I have a document Person referenced in document User. When I retrieve User, it doesn't have a Person object embedded, but a Person proxy object. Is there a way to "force" the proxy to become a "ful...
Flofloat asked 8/6, 2011 at 14:23

1

Following the example as documented in the following http://symfony.com/doc/current/cookbook/form/dynamic_form_generation.html I need to populate subcategory field according to the category select...
Holliholliday asked 12/4, 2013 at 10:0

2

I have a document that has a document embedded. When I create an object for the first time everything works fine, but when I try to update a document, the embedded document does not get updated. /...
Tarlatan asked 5/9, 2012 at 16:20

2

Solved

Is it possible to compare the state of an entity object between the current "dirty" version (an object that has some of its properties changed, not yet persisted) and the "original" version (the da...
Microphysics asked 13/3, 2013 at 14:50

2

Solved

I am trying to install Doctrine MongoDB ODM module through composer with Zend Framework 2 on my local machine but I keep getting an error stating that PHP extension mango is missing from my compute...
Smoky asked 12/12, 2012 at 2:9

3

Solved

I am trying to integrate zf2 beta3 with doctrine mongo odm (https://github.com/doctrine/DoctrineMongoODMModule) but no sucess. How can I install and configure it?

1

I am wondering why I am getting the following php notice: ( ! ) Notice: Mongo::__construct(): parsing servers in C:\htdocs\multishop\library\Lupi\Resource\Odm.php on line 38 Call Stack # Time Memo...
Doit asked 8/7, 2012 at 5:15

© 2022 - 2024 — McMap. All rights reserved.