一般的な質問:現在のトランザクション ( ) とデフォルトのトランザクション ( )
の概要を知りたいです。currentTransactiondefaultTransaction
具体的な質問:
Emberコントローラーと.this.get('model').save()this.get('store').commit()
this.get('model').save()最終的に Ember-data Store を呼び出します。 githubget(this, 'currentTransaction').commit().を参照してください。
this.get('store').commit()最終的に Ember-data Store を呼び出します。 githubget(this, 'defaultTransaction').commit()を参照してください。
単一の編集済みレコードを更新する場合、それらはまったく同じように見えます。それらはどのように異なって使用されるべきですか?