Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical 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

        Nico Kaiser created issue -
        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.
        Roman S. Borschel made changes -
        Fix Version/s 2.0-BETA2 [ 10050 ]
        Priority Major [ 3 ] Critical [ 2 ]
        Roman S. Borschel made changes -
        Assignee Roman S. Borschel [ romanb ] Benjamin Eberlei [ beberlei ]
        Benjamin Eberlei made changes -
        Attachment DDC599Test.php [ 10628 ]
        Roman S. Borschel made changes -
        Assignee Benjamin Eberlei [ beberlei ] Roman S. Borschel [ romanb ]
        Roman S. Borschel made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Roman S. Borschel made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 11380 ] jira-feedback [ 15632 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15632 ] jira-feedback2 [ 17496 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17496 ] jira-feedback3 [ 19753 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: