Results 1 to 3 of 3

Thread: Remove record from ManyToMany association

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-15542 in 5.0.2.
  1. #1
    Sencha User sksoft's Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    34

    Default Remove record from ManyToMany association

    Consider reference models with Users and Groups. Adding a group to user.groups() adds that user to the group.users(), but removing - leaves user in group.users() store. Bug?
    Code:
    var session = new Ext.data.Session();
    
    var user = session.createRecord('User', {
        name: 'Bob'
    });
    
    var admin = session.createRecord('Group', {
        name: 'admin'
    });
    
    var groups = user.groups();
            
    groups.add(admin);
    groups.remove(admin); // admin.users() still contains our user
    See full testcase in the fiddle.
    Please, move this thread to Bugs forum if it is a real bug.


  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User sksoft's Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    34

    Default

    If I helped you to find a bug, could you show me at least your hotfix?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •