Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I am using something like this http://docs.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/reference/storing-files-with-mongogridfs.html

      Let`s say I get a profile from DB and I do:

      $image = $profile->getImage();
      $profile->setImage(null);
      $dm->remove($image);
      $dm->flush();

      the image is not deleted/removed from DB. When I do this:

      $image = $dm->getRepository('Image')>findOneById($profile>getImage()->getId());
      $profile->setImage(null);
      $dm->remove($image);
      $dm->flush();

      the image is removed.

        Activity

        Hide
        Robert Dolca added a comment -

        Annotation error. My bad

        Show
        Robert Dolca added a comment - Annotation error. My bad

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Robert Dolca
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: