JavaScript Add and delete records with ember.js delete records with foreign key constraints,delete records with data

I am using emberjs for mvc in client side, I'm facing a problem when I would like to delete a record et create another with the same Id of the deleted one.

It shows me this error

Uncaught Error: Assertion Failed: Error: Assertion Failed: The id 2 has already been used with another record of type Client.Componant.

I tried destroyRecord() and store.unloadRecord(...) but it seems like the store still have the record which supposed deleted in his cache or some thing like that.

Any HELP please !! Thanks

Answer:1

I have been fiddling around with HTML lately and I have a question. Is there a way to scope element's id as a child of another element? It's difficult to describe, but here's an example. <body>...

I have been fiddling around with HTML lately and I have a question. Is there a way to scope element's id as a child of another element? It's difficult to describe, but here's an example. <body>...

  1. html javascript scope
  2. html javascript scope variable

How do I redirect the user based on two options on drop down menu's? i have read a few similar questions but couldnt relate the advice as the form code I am using is very long and complicated. I have ...

How do I redirect the user based on two options on drop down menu's? i have read a few similar questions but couldnt relate the advice as the form code I am using is very long and complicated. I have ...

  1. form redirect based on input

I am making a rich text editor with UIWebview, which uses a contentEditable div. I want to get the caret's position in pixels. I have searched a lot, and I got the code below. function ...

I am making a rich text editor with UIWebview, which uses a contentEditable div. I want to get the caret's position in pixels. I have searched a lot, and I got the code below. function ...

  1. caretaker
  2. carethy
  3. caretaker jobs
  4. caret symbol
  5. carethy reviews
  6. caretracker
  7. caret browsing
  8. caretaker synonym
  9. caretaker definition
  10. caretenders
  11. caretaking
  12. careta
  13. caretrust reit
  14. caret r
  15. carettas
  16. caretrust reit stock
  17. caretaker gazette
  18. caretaker witcher 3
  19. carethy hand sanitizer
  20. caretech

I am trying to query the user twice (more than once in general), but everything gets printed out together and the first response get processed by both functions. I believe this has to do with the ...

I am trying to query the user twice (more than once in general), but everything gets printed out together and the first response get processed by both functions. I believe this has to do with the ...

  1. multiple prompts for user input python
  2. multiple prompts for user input