0 Replies Latest reply on Feb 27, 2009 1:58 PM by (Jurek)

    one-to-many relationship - remove item from collection problem

      The ArrayCollection keeps folders tree - subtree of folder is kept in children property and is also ArrayCollection. This collection is fed by 'folders' custom assembler defined like this:

      ...

           
           

      ...

      Assembler works with adding and deleting top level objects of collection.
      Also, when I add new object to children property LCDS issues createItem for new object and then updateItem for children property of parent so everything is fine - new object is persisted and relationship is correct.
      When I remove item from children collection ONLY updateItem on assembler is issued, so object is not deleted from repository. Why this managed reletionship works for adding new object to children collection but doesnt work for deleting?