Stillat / relationships

Provides automated bi-directional @statamic entry relationships
MIT License
18 stars 1 forks source link

Many to many relationship stores term as 'taxonomy::term' #21

Closed mikemartin closed 1 year ago

mikemartin commented 1 year ago

When using the relationship below, the taxonomy term is stored with the taxomony name causing a new taxonomy term to be created.

activities:
  - 'activities::drawing'
  - 'activities::drafting'

Relation

Relate::manyToMany(
            'term:activities.products',
            'pens.activities'
        );

Activities term products field:

-
            handle: products
            field:
              mode: default
              create: true
              collections:
                - pens
                - markers
                - refills
                - accessories
              display: Products
              type: entries
              icon: entries
              listable: hidden
              instructions_position: above
              visibility: visible
              hide_display: false

Pen entry activities field:

-
            handle: activities
            field:
              type: terms
              taxonomies:
                - activities
              display: Activities
              mode: select
JohnathonKoster commented 1 year ago

Note to self: To reproduce consistently, set up the relationship and update it from the Taxonomy page.

JohnathonKoster commented 1 year ago

Corrected in 2.0.3 (S4) and 1.2.4 (S3) 🙂