Announcement

Collapse
No announcement yet.

Many to Many relationships, no field

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Many to Many relationships, no field

    With any non-many to many relationships espo automatically creates a field (link) for both entites, but with many to many it is not generating that field... is there a way to solve this?

  • #2
    also with my one to many, I have a field option for the side of which there is many and they can pick the one entity they are linked to, but for the one entity they are linked to you can't see what many smaller entities it's connected to...

    Comment


    • #3
      You can create linkMultiple field manually. It was not made for a sake of performance. If there is a lot of relater records having linkMultiple field will increase loading significantly.

      Comment


      • #4
        Okay, thank you for the warning!

        How would I create the linkMultiple field manually?

        Comment


        • #5
          my net goals is to have it so that Accounts(i've renamed companies) can have many different Contacts, but Contacts can only have one Company(account). I tried to do a one to many link but it didn't generate a field, and doesn't handle situations were someone may be employeed by too different companies(it's fine if that's not covered).

          Comment


          • #6
            Add new field entityDefs


            "fields": {
            "nameOfFIeldShouldBeTheSameAsYourLinkName": {
            "type": "linkMultiple"
            }
            }


            See application/Espo/Modules/Crm/Resources/metadata/entityDefs/ There are examples.

            Comment


            • #7
              Thank you so much you're a life saver! I love the tool and appreciate it soo much. Two of my employers are looking to purchase the advanced pack shortly!

              Comment

              Working...
              X