1. #21
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,251
    Vote Rating
    485
    scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute

      0  

    Default

    There is no public release date available for these version at this time.

    Regards,
    Scott.

  2. #22
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    2,841
    Vote Rating
    146
    mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold

      0  

    Default

    Scott, any thoughts on getting this fixed? http://www.sencha.com/forum/showthre...939#post811939

    No CRUD can be be done with any Store or TreeStore until fixed...

  3. #23
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Norway
    Posts
    24
    Vote Rating
    0
    atomcat is on a distinguished road

      0  

    Default

    Hi,

    Ext.util.observable is broken. I'll file an official bug report soon.
    Ext.util.Observable.js/prepareClass seems to be broken, the instance variable won't have property hasListeners, created. It only has the capitalized varible, HasListener, so addListener code, and many other event handling code parts related to Ext.util.Observable fails.

  4. #24
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,601
    Vote Rating
    753
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default

    Are you mixing it into your own custom class? If so, be sure to call the observable constructor.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  5. #25
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Norway
    Posts
    24
    Vote Rating
    0
    atomcat is on a distinguished road

      0  

    Default

    Hi,

    Yes, I've mixed it in to a custom class created by me. If I remember right, calling the Obervable's constructor was not mandatory in previous versions, was it?

  6. #26
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,601
    Vote Rating
    753
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default

    It was, it's just that by chance it happened to work ok without it. You should call the mixin constructor.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  7. #27
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Norway
    Posts
    24
    Vote Rating
    0
    atomcat is on a distinguished road

      0  

    Default

    Ok, it works fine when calling the constructor. It was just a bit misleading, that it was never mentioned in any of the examples I've seen previously, that if the Observable is mixed in, it's constructor must be called. Thanks for opening my eyes!

    Maybe it would be wise to mention it in the documentation also.

  8. #28
    Sencha User mono blaine's Avatar
    Join Date
    Jul 2008
    Location
    Turkey
    Posts
    123
    Vote Rating
    8
    mono blaine will become famous soon enough

      0  

    Default

    I don't know whether it's already been reported or not, but the getter and setter functions of the model associations are not generated:

    (from documentation)
    Code:
    Ext.define('Address', {
        extend: 'Ext.data.Model',
        fields: [{
            name: 'id',
            type: 'int'
        }, {
            name: 'number',
            type: 'string'
        }, {
            name: 'street',
            type: 'string'
        }, {
            name: 'city',
            type: 'string'
        }, {
            name: 'zip',
            type: 'string'
        }]
    });
    
    Ext.define('Person', {
        extend: 'Ext.data.Model',
        fields: [{
            name: 'id',
            type: 'int'
        }, {
            name: 'name',
            type: 'string'
        }, {
            name: 'address_id',
            type: 'int'
        }],
        associations: {
            type: 'hasOne',
            model: 'Address'
        }
    });
    
    var person = newPerson({
        id: 100,
        address_id: 20,
        name: 'John Smith'
    });
    
    // There's no person.getAddress method

  9. #29
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,601
    Vote Rating
    753
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default

    Assocations is expected to be an array, it's a typo in the docs. I'll fix it up.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  10. #30
    Sencha User mono blaine's Avatar
    Join Date
    Jul 2008
    Location
    Turkey
    Posts
    123
    Vote Rating
    8
    mono blaine will become famous soon enough

      0  

    Default

    Quote Originally Posted by evant View Post
    Assocations is expected to be an array, it's a typo in the docs. I'll fix it up.
    Yes, it works as expected when the associations config is converted into an array.

    Does it mean we shouldn't use the approach below, either?

    Code:
    Ext.define('Person', {
        // ...
        hasOne: 'Address'
    });