Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User Jad's Avatar
    Join Date
    Feb 2012
    Location
    annecy france
    Posts
    61
    Answers
    7
    Vote Rating
    1
    Jad is on a distinguished road

      0  

    Default Unanswered: Association

    Unanswered: Association


    Hello,

    Is it necessary to put a belongsTo association if in the auther data model the hasMany is seted

  2. #2
    Sencha User
    Join Date
    Oct 2012
    Posts
    17
    Vote Rating
    0
    romanyu is on a distinguished road

      0  

    Default


    In my condition, the answer is Yes. Here is my code:
    Code:
    Ext.define('MyProject.model.MyProjectModel', {
        extend: 'Ext.data.Model',
        
        config: {
            fields: ['name', 'desc'],
            hasMany: {
                model: "MyProject.model.MyProjectDetailModel",
                name: 'detail',
                associationKey: 'detail'
            }
        }
        
    });
    Code:
    Ext.define('MyProject.model.MyProjectDetailModel', {
        extend: 'Ext.data.Model',
        
        config: {
            fields: ['logo', 'phone', 'working hours']
        }
    });

Thread Participants: 1