Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-BETA2
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None

      Description

      When using inheritance, cascade=

      {"delete"} does not work anymore:

      This example creates three Entities:
      - Item
      - SubItem (extends Item)
      - Child

      The Item has a OneToMany association with Child with cascade={"delete"}

      , so if an Item is deleted, its Children are deleted too.

      http://pastie.org/965096

      However this does not work, the cascade is ignored when the Item is deleted. Without inheritance (e.g. only Item with Children) it works perfectly.

        Activity

        nicokaiser Nico Kaiser created issue -
        nicokaiser Nico Kaiser made changes -
        Field Original Value New Value
        Summary Inheritance breaks onCascade Inheritance breaks cascading
        Description When using inheritance, onCascade={"delete"} does not work anymore:

        This example creates three Entities:
        - Item
        - SubItem (extends Item)
        - Child

        The Item has a OneToMany association with Child with onCascade={"delete"}, so if an Item is deleted, its Children are deleted too.

        http://pastie.org/965096

        However this does not work, the cascade is ignored when the Item is deleted. Without inheritance (e.g. only Item with Children) it works perfectly.
        When using inheritance, cascade={"delete"} does not work anymore:

        This example creates three Entities:
        - Item
        - SubItem (extends Item)
        - Child

        The Item has a OneToMany association with Child with cascade={"delete"}, so if an Item is deleted, its Children are deleted too.

        http://pastie.org/965096

        However this does not work, the cascade is ignored when the Item is deleted. Without inheritance (e.g. only Item with Children) it works perfectly.
        romanb Roman S. Borschel made changes -
        Fix Version/s 2.0-BETA2 [ 10050 ]
        Priority Major [ 3 ] Critical [ 2 ]
        romanb Roman S. Borschel made changes -
        Assignee Roman S. Borschel [ romanb ] Benjamin Eberlei [ beberlei ]
        beberlei Benjamin Eberlei made changes -
        Attachment DDC599Test.php [ 10628 ]
        romanb Roman S. Borschel made changes -
        Assignee Benjamin Eberlei [ beberlei ] Roman S. Borschel [ romanb ]
        romanb Roman S. Borschel made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        romanb Roman S. Borschel made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        beberlei Benjamin Eberlei made changes -
        Workflow jira [ 11380 ] jira-feedback [ 15632 ]
        beberlei Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15632 ] jira-feedback2 [ 17496 ]
        beberlei Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17496 ] jira-feedback3 [ 19753 ]

          People

          • Assignee:
            romanb Roman S. Borschel
            Reporter:
            nicokaiser Nico Kaiser
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: