Results 1 to 3 of 3

Thread: Model.save allDataOptions.serialize with associations

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Arvada, CO
    Posts
    404
    Answers
    11

    Default Model.save allDataOptions.serialize with associations

    I'm very confused about why when saving a model with associations that you cannot pass the serialize: true flag to the getData method... I mean, you're calling the same getData method on a record, so why wouldn't it be valid to pass that along the association? I added an override in the Writer's getRecordData to remove the options.serialize line, and let the allDataOptions drive that, but I was wondering if I could get a comment from a dev on what the repercussions of this would be? Any comment would be appreciated.

    I do have a Fiddle showcasing why I would like this functionality... in my association, I have a dateFormat that I would like to use to send back to the server, so that's why I need serialize to work.


  2. #2
    Sencha User
    Join Date
    Mar 2011
    Location
    Arvada, CO
    Posts
    404
    Answers
    11

    Default

    According to a Support Ticket I opened, this is a bug (EXTJS-17166), which is in the code review status, so it should be fixed relatively soon.

  3. #3
    Sencha Premium User
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    122
    Answers
    1

    Default

    Same bug as mentioned in Thread Why can't we use serialize with !writeAll in Writter#getRecordData - Still not fixed, of course.

Similar Threads

  1. Data Model: premature calling of serialize
    By rzymek in forum Sencha Ext JS Q&A
    Replies: 2
    Last Post: 22 Oct 2014, 1:44 AM
  2. [OPEN] Bug: Architect error when adding Serialize to Model
    By blomasky in forum Sencha Architect 3.x: Bugs
    Replies: 7
    Last Post: 14 Aug 2014, 6:30 AM
  3. Replies: 1
    Last Post: 2 Mar 2013, 10:58 AM
  4. How to load associations after successful Model.save() ?
    By DCstewieG in forum Sencha Ext JS Q&A
    Replies: 2
    Last Post: 9 Jul 2012, 6:01 PM
  5. How to serialize model to JSON?
    By masm in forum Ext: Q&A
    Replies: 1
    Last Post: 3 Feb 2012, 2:18 AM

Posting Permissions

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