[MODM-110] QueryBuilder missing values and values with wrong data types being inserted Created: 27/Jan/11  Updated: 19/Feb/11  Resolved: 12/Feb/11

Status: Resolved
Project: Doctrine MongoDB ODM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.0BETA2

Type: Bug Priority: Minor
Reporter: Shards Assignee: Jonathan H. Wage
Resolution: Fixed Votes: 0
Labels: None

Attachments: Zip Archive Documents.zip    



I'm using annotation mapping for my documents and found something strange when i insert a document (having an embed document) using the query builder...

When i use the document class and persist it, things are fine:

$testCase = new \Documents\Test();
$testCase->testInt = '0';
$testCase->intfields = new \Documents\Embed\Intfields();
$testCase->intfields->intone = '1';
$testCase->intfields->inttwo = '2';

"_id": ObjectId("4d417fb1723014d009000008"),
"testInt": 0,

{ "intone": 1, "inttwo": 2 }


But when i use the query builder:


"_id": ObjectId("4d417fb1723014d009000009"),
"testInt": "0",

{ "inttwo": "2" }


Intone is missing and the values are all string values.

It seems to be a bug, but as i'm new to the doctrine and mongo world, it's more than possible to be a user error. :}

I was using the clone version of the master git hub.. is that beta2?


PS.: Php files are attached

Comment by Jonathan H. Wage [ 11/Feb/11 ]

Hi, phpunit test case?

Comment by Jonathan H. Wage [ 12/Feb/11 ]

This is fixed now.

Comment by Shards [ 14/Feb/11 ]

thank you =}

Generated at Tue Oct 13 03:19:30 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.