[MODM-125] Doctrine\ODM\MongoDB\MongoCollection::findOne does not invoke postFindOne event handlers doing query against MongoGridFS collection Created: 18/Feb/11  Updated: 04/Mar/11  Resolved: 04/Mar/11

Status: Resolved
Project: Doctrine MongoDB ODM
Component/s: Mongo, MongoCollection, MongoCursor
Affects Version/s: 1.0.0BETA2
Fix Version/s: 1.0.0BETA3

Type: Bug Priority: Major
Reporter: Vitaliy Kaplich Assignee: Jonathan H. Wage
Resolution: Cannot Reproduce Votes: 0
Labels: None

CentOS, PHP 5.3



it happens because the code goes out of the function at line 334 in file
without invoking appropriate event handlers


Comment by Vitaliy Kaplich [ 18/Feb/11 ]

And the same bug with Doctrine\ODM\MongoDB\MongoCollection::getDBRef method as well

Comment by Jonathan H. Wage [ 04/Mar/11 ]

Which version are you using? I don't see this behavior any longer. Can you confirm?

Comment by Jonathan H. Wage [ 04/Mar/11 ]

Also, getDBRef() notifies the pre/postGetDBRef events.

Comment by Jonathan H. Wage [ 04/Mar/11 ]

If you can still reproduce the issue can you provide a test case for us to run?

Comment by Vitaliy Kaplich [ 04/Mar/11 ]

I'm using 1.0.0BETA1


there is a "return" at line 338

so the function invoke "preFindOne" but not "postFindOne"

Generated at Wed Nov 25 03:26:36 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.