Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2986

OrphanRemoval no longer works on OneToMany relationships after latest Symfony update - 2.3.10

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:

      Description

      Since release of Symfony version 2.3.10 the orphanRemoval feature in a doctrine entity no longer removes deleted entities.

        Activity

        Hide
        Marco Pivetta added a comment -

        Scott Pringle reference to the commit?

        Show
        Marco Pivetta added a comment - Scott Pringle reference to the commit?
        Show
        Scott Pringle added a comment - This commit fixed the issue - https://github.com/symfony/symfony/commit/c4ffe02100eb6f4aaf92ad1ccecba1bf666b96fc
        Hide
        Marco Pivetta added a comment -

        Not related to ORM

        Show
        Marco Pivetta added a comment - Not related to ORM
        Hide
        Marco Pivetta added a comment -

        Scott Pringle thanks - changed resolution

        Show
        Marco Pivetta added a comment - Scott Pringle thanks - changed resolution
        Hide
        Christophe Coevoet added a comment -

        Yeah, the actual issue is indeed not related to the ORM at all. But the bug report was totally wrong (which is why I classified it as a Doctrine issue): the Symfony bug has nothing to do with orphanRemoval (it is not only the related entity which was not deleted. The element was not removed from the collection at all)

        Show
        Christophe Coevoet added a comment - Yeah, the actual issue is indeed not related to the ORM at all. But the bug report was totally wrong (which is why I classified it as a Doctrine issue): the Symfony bug has nothing to do with orphanRemoval (it is not only the related entity which was not deleted. The element was not removed from the collection at all)

          People

          • Assignee:
            Marco Pivetta
            Reporter:
            Scott Pringle
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: