0
我如何獲取使用屬於關聯的記錄?屬於Sencha的關聯
var Category = Ext.regModel('Category', {
fields: [
{name: 'id', type: 'int'},
{name: 'name', type: 'string'}
]
});
var Product = Ext.regModel('Product', {
fields: [
{name: 'id', type: 'int'},
{name: 'category_id', type: 'int'},
{name: 'name', type: 'string'}
],
associations: [
{type: 'belongsTo', model: 'Category'}
]
});
從上面的例子我真的想要檢索每個產品的類別名稱。爲此,我使用sfdc Api使用equi連接進行數據庫調用。但一些查詢失敗。 – Amol