Results 1 to 1 of 1

Thread: Error when saving child session with record with dropped associated phantom records

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member rkleinkromhof's Avatar
    Join Date
    Apr 2013
    Enschede, The Netherlands

    Default Error when saving child session with record with dropped associated phantom records


    A phantom record with an associated many-to-one phantom record in a session cannot be dropped in a child session. It will throw an error.

    We have a setup with models and associations: Customer 1--n Order 1--n OrderLine. On an existing Customer record in a session, we create an Order and OrderLine. We then place the Customer in a child session, drop the Order and save the child session. It wants to drop the OrderLine twice: once because it's associated Order is dropped, then again because it was dropped itself, resulting in an error:

    [E] Cannot drop, record does not exist: [email protected]

    What i expected

    For both the Order and OrderLine to be removed from the parent session without an error being thrown.


    See fiddle here:

    Run the example: it throws an error.

    Comment out the "csOrder.orderLines(); // This line makes all the difference; omit it and all goes well." line and run it again: no error.

    Versions tested

    • Ext JS 6.5 nightly of 09/27/2017 - [Classic] Neptune
    • Ext JS - [Classic] Neptune
    • Ext JS - [Modern] Triton
    • Ext JS - [Classic] Neptune
    Last edited by rkleinkromhof; 28 Sep 2017 at 4:36 AM. Reason: added Versions tested

Similar Threads

  1. [FIXED] Session dirtychange not fired when pushing new records from a child session
    By rkleinkromhof in forum Ext JS 6.x Bugs
    Replies: 4
    Last Post: 27 Jan 2017, 3:48 AM
  2. VM linked record in session still phantom on batch complete
    By wemerson.januario in forum Ext 5: Q&A
    Replies: 4
    Last Post: 15 Jan 2017, 7:13 PM
  3. Replies: 3
    Last Post: 9 Apr 2015, 10:02 AM
  4. Session getSaveBatch and dropped record.
    By FunkySkywalker in forum Ext 5: Q&A
    Replies: 0
    Last Post: 10 Jul 2014, 11:56 PM
  5. [FIXED] Model.idChanged Event not fired when saving phantom records
    By KajaSheen in forum Ext:Bugs
    Replies: 2
    Last Post: 16 Aug 2012, 12:27 PM

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