Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    5
    Vote Rating
    0
    taher.baderkhan is on a distinguished road

      0  

    Default Crash when trying to add a third hasMany Association

    Crash when trying to add a third hasMany Association


    Every time I try adding a third hasMany Association I get "An unexpected error occured" with the following message:

    TypeError: 'undefined' is not an object

    I have two different models with two "hasMany" associations each. This error will occur if add the third relation ship to either. It occurs the moment I drop the "hasMany Association" object or when I click the Associations + sign in the model.

    I am using build 412

  2. #2
    Sencha User
    Join Date
    Feb 2012
    Posts
    5
    Vote Rating
    0
    taher.baderkhan is on a distinguished road

      0  

    Default


    The error actually occurs on adding a third association whether its a hasMany or hasOne

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2009
    Posts
    5
    Vote Rating
    1
    pekue is on a distinguished road

      0  

    Default


    i can confirm this: architect crashed while trying to add a third hasOneAssociation to a model.
    after that i had to manually remove it from the metadata/model/Modelname file to be able to start working with the project again.

    cheers
    pekue

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    86
    Vote Rating
    -7
    CarClub is on a distinguished road

      0  

    Default


    Yep, same here. Actually, if I look at the source view, I see it has added an empty association, but the browser doesn't show it. Any work around?

    belongsTo: [
    {
    model: 'MyApp.model.VehicleColor',
    primaryKey: 'color_ID',
    foreignKey: 'color_ID'
    },
    {
    model: 'MyApp.model.VehicleMake',
    primaryKey: 'make_ID',
    foreignKey: 'vehicle_make_ID'
    },
    {


    },
    {


    },
    {


    }
    ]

Thread Participants: 2

Tags for this Thread