Many to Many relationships, no field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MiJo16CDAT
    Junior Member
    • Jul 2015
    • 27

    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?
  • MiJo16CDAT
    Junior Member
    • Jul 2015
    • 27

    #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

    • yuri
      Member
      • Mar 2014
      • 8440

      #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.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • MiJo16CDAT
        Junior Member
        • Jul 2015
        • 27

        #4
        Okay, thank you for the warning!

        How would I create the linkMultiple field manually?

        Comment

        • MiJo16CDAT
          Junior Member
          • Jul 2015
          • 27

          #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

          • yuri
            Member
            • Mar 2014
            • 8440

            #6
            Add new field entityDefs


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


            See application/Espo/Modules/Crm/Resources/metadata/entityDefs/ There are examples.
            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            • MiJo16CDAT
              Junior Member
              • Jul 2015
              • 27

              #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...