Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-14010 in 5.0.2.
  1. #11
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    96
    Vote Rating
    7
    ralscha will become famous soon enough

      0  

    Default


    Quote Originally Posted by wemerson.januario View Post
    is this bug fized EXTJS-14010 ?
    No. Still the same behaviour in 5.0.1. When the application erases a record with model.erase and the model is in an autoSync store it will call the proxy twice.

    As a workaround/solution you could suspend the the autosync of the store temporary.

    Code:
    myStore.suspendAutoSync();
    myModel.erase({
      callback: function(e) {}
    });
    myStore.resumeAutoSync();
    Ralph

  2. #12
    Sencha User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Brazil, Goias, Goiânia
    Posts
    431
    Vote Rating
    6
    wemerson.januario is on a distinguished road

      0  

    Default


    Quote Originally Posted by ralscha View Post
    No. Still the same behaviour in 5.0.1. When the application erases a record with model.erase and the model is in an autoSync store it will call the proxy twice.

    As a workaround/solution you could suspend the the autosync of the store temporary.

    Code:
    myStore.suspendAutoSync();
    myModel.erase({
      callback: function(e) {}
    });
    myStore.resumeAutoSync();
    Ralph
    Thanks!
    Wemerson Januario
    Twitter:
    @wemersonjanuar
    Skype:
    wemerson.januario
    Email: wemerson.januario@gmail.com
    Fone:
    62 9106-6689
    From: Goiânia, Brazil
    Desenvolvedor ExtJS/ ExtJS Developer

  3. #13
    Sencha User
    Join Date
    May 2014
    Posts
    24
    Vote Rating
    0
    romainpicxi is on a distinguished road

      0  

    Default


    Thanks

  4. #14
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,833
    Vote Rating
    609
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    I'm still not really sure on the use case here. Why call erase on the model instance when the store is managing the records? Why not call drop, which will let the store autoSync the delete?
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  5. #15
    Sencha User
    Join Date
    May 2014
    Posts
    24
    Vote Rating
    0
    romainpicxi is on a distinguished road

      0  

    Default


    Quote Originally Posted by evant View Post
    I'm still not really sure on the use case here. Why call erase on the model instance when the store is managing the records? Why not call drop, which will let the store autoSync the delete?
    I use your solution with drop :-)

  6. #16
    Sencha User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Brazil, Goias, Goiânia
    Posts
    431
    Vote Rating
    6
    wemerson.januario is on a distinguished road

      0  

    Default


    Quote Originally Posted by evant View Post
    I'm still not really sure on the use case here. Why call erase on the model instance when the store is managing the records? Why not call drop, which will let the store autoSync the delete?
    In my use case, is because I use the callback functions(success, failure) from erase() to do especific rules in my code and drop does not have callback for the droped record.
    Wemerson Januario
    Twitter:
    @wemersonjanuar
    Skype:
    wemerson.januario
    Email: wemerson.januario@gmail.com
    Fone:
    62 9106-6689
    From: Goiânia, Brazil
    Desenvolvedor ExtJS/ ExtJS Developer

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi