Results 1 to 3 of 3

Thread: OneToOne inverse getter and setter are not created.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User
    Join Date
    Aug 2016
    Posts
    2

    Exclamation OneToOne inverse getter and setter are not created.

    Using the example in the documentation for a keyed OneToOne reference: https://docs.sencha.com/extjs/6.6.0/....OneToOne.html

    The userInfo getUser and setUser functions are not created. The documentation states that "Each record type will have a getter and setter."

    See the fiddle here:
    https://fiddle.sencha.com/#view/editor&fiddle/2o49

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,006

    Default

    Thank you for bringing this to our attention. I will see to it that the support team receives this information and looks into it as soon as possible.

    Michele

  3. #3
    Sencha Premium User
    Join Date
    Aug 2016
    Posts
    2

    Default

    After tracing through the code, I found that the OneToOne relationship gets created if the field config is this instead:
    {
    name: 'userInfoId',
    reference: {
    type: 'UserInfo'
    },
    unique:true
    }

    So either the documentation is wrong or it was just implemented incorrectly.

Similar Threads

  1. Keyless, nested data - Inverse/Parent getter override
    By REM955 in forum Ext JS 6.x Q&A
    Replies: 0
    Last Post: 15 May 2017, 11:55 AM
  2. Replies: 2
    Last Post: 14 Nov 2016, 5:51 AM
  3. Override getter and not setter
    By dersgniw in forum Ext 5: Q&A
    Replies: 4
    Last Post: 6 Apr 2016, 6:39 AM
  4. OneToOne with inverse access
    By romainpicxi in forum Ext 5: Q&A
    Replies: 3
    Last Post: 15 Sep 2015, 4:50 AM
  5. getter & setter
    By cylontoaster in forum Ext: Discussion
    Replies: 2
    Last Post: 13 Jul 2011, 6:36 AM

Posting Permissions

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