Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have two content types : Cart and Cart line item. I need to link them by using entity reference. One cart may have many line item and one line item belongs to only one cart. In term of performance (query, views,...), which approach is the best ?
- Create one multiple entity reference field on cart and filter by content type line item.
- Create one unique entity reference field on line item content type that refer the corresponding cart.
Best.
Comments