Doctrine MongoDB ODM
  1. Doctrine MongoDB ODM
  2. MODM-125

Doctrine\ODM\MongoDB\MongoCollection::findOne does not invoke postFindOne event handlers doing query against MongoGridFS collection

    Details

      Description

      subj

      it happens because the code goes out of the function at line 334 in file
      \Doctrine\ODM\MongoDB\MongoCollection.php
      without invoking appropriate event handlers

      thanks!

        Activity

        Hide
        Vitaliy Kaplich added a comment -

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

        Show
        Vitaliy Kaplich added a comment - And the same bug with Doctrine\ODM\MongoDB\MongoCollection::getDBRef method as well
        Hide
        Jonathan H. Wage added a comment -

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

        Show
        Jonathan H. Wage added a comment - Which version are you using? I don't see this behavior any longer. Can you confirm?
        Hide
        Jonathan H. Wage added a comment -

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

        Show
        Jonathan H. Wage added a comment - Also, getDBRef() notifies the pre/postGetDBRef events.
        Hide
        Jonathan H. Wage added a comment -

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

        Show
        Jonathan H. Wage added a comment - If you can still reproduce the issue can you provide a test case for us to run?
        Hide
        Vitaliy Kaplich added a comment -

        I'm using 1.0.0BETA1

        https://github.com/doctrine/mongodb-odm/blob/1.0.0BETA1/lib/Doctrine/ODM/MongoDB/MongoCollection.php

        there is a "return" at line 338

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

        Show
        Vitaliy Kaplich added a comment - I'm using 1.0.0BETA1 https://github.com/doctrine/mongodb-odm/blob/1.0.0BETA1/lib/Doctrine/ODM/MongoDB/MongoCollection.php there is a "return" at line 338 so the function invoke "preFindOne" but not "postFindOne"

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Vitaliy Kaplich
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: