Skip to content
Discussion options

You must be logged in to vote

We started storing the target element IDs in the content JSON in Craft 5.3, to get multi-instance support working for relation fields. They still store values in the relations table as well, but that table isn’t multi-instance aware, so now each individual field instance also stores its list of target element IDs in the content JSON. If the content JSON value is set, then the field will use that array when building its field value query. Otherwise it will fall back to joining in the relations table, like pre-5.3.

That said, the relations table is not (and won’t be) deprecated, even if it were no longer needed for fallback data, because it’s still referenced when fetching reverse relations.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mmikkel
Comment options

@mmikkel
Comment options

@brandonkelly
Comment options

Answer selected by mmikkel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants