Results 1 to 2 of 2

Thread: Auto generated methods for associations not generated

  1. #1
    Sencha User
    Join Date
    Jul 2014
    Posts
    10
    Answers
    1

    Default Auto generated methods for associations not generated

    Hi,

    I have defined some basic associations like in the example. There is nothing special and I just want to use the conventions for keynames, methodnames, etc. However if I have a model called Asset and model called Comment and I define an association like Asset has many Comments there is no comments() method on my asset records unless I explicitly specify a name property in the config. The docs however say that
    [...] If not specified, the pluralized name of the child model is used.
    This is just not true. See this example: https://fiddle.sencha.com/#fiddle/fbi There is no "users" property on the group model without specifying it.

  2. #2
    Sencha Premium User lumberjack's Avatar
    Join Date
    Nov 2014
    Location
    Kansas
    Posts
    781
    Answers
    102

    Default

    When the User model definition exists, the auto-generated methods seem to work for me.

    Regards,
    Brian

    https://fiddle.sencha.com/#fiddle/flf

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •