How to assign the attribute "teamsId" of a linked entity in formulas?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cpicanco
    Member
    • Sep 2019
    • 60

    How to assign the attribute "teamsId" of a linked entity in formulas?

    entity\addLinkMultipleId('user.teams', 'id')
    entity\addLinkMultipleId('user.teamsIds', 'id')

    did not work
    Last edited by cpicanco; 09-23-2019, 04:22 PM.
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hello,
    It should looks like this
    Code:
    entity\addLinkMultipleId('teams', user.teamsIds)
    Note: it is not supported for link-multiple fields. Mean that your relation of the custom entity to User should be Many-to-One. Many-to-Many or One-to-Many will not work.

    Comment

    Working...