Is there a commit method for the fixture adapter? What does it do?
As my understanding goes store.commit()
puts an API call when used with REST adapter.
Can I use isLoaded
property with fixture adapter?
Basically I have 2 records in my controller called x
and y
and a property content that has many records of y
type.
Coffee code below:
someMethod: (->
content.removeObject(y)
).('x.isLoaded')
anotherMethod: ->
//modify x
Application.store.commit()
When I call anotherMethod
it updates x
and runs a commit on store, hence someMethod
gets called.
My actual application runs fine but in case of tests someMethod
removes the record y
from content as well as store.
Is it that isLoaded
and commit
are not for fixture data store?