Не можете найти записи из моей моделиEmber JS Найти свойствами
Ember версия:
DEBUG: -------------------------------
DEBUG: Ember : 1.0.0
DEBUG: Ember Data : 1.0.0-beta.2
DEBUG: Handlebars : 1.0.0 ember.js
DEBUG: jQuery : 1.9.1 ember.js
DEBUG: -------------------------------
Модель:
App.Concert = DS.Model.extend({
tour_id: DS.attr(),
tickets: DS.attr()
});
Поиск:
this.get("store").find("concert", {tour_id: 1}).then(function(result) {
console.log("--------------");
console.log(result.content.length);
console.log("--------------");
}, function(error) {
console.log("broken");
});
консоли:
-------------
length: 0
--------------
Я не могу найти записи из своей модели по свойствам. Кто-нибудь может помочь? Я знаю, что записи с tour_id: 1 существует
длина по-прежнему равна 0 –
Можете ли вы предоставить скрипку? – Edu