Skip to content
Discussion options

You must be logged in to vote

No, you cannot create a hasMany relation on a virtualized view because virtual views do not support indexes on foreign keys. In Contember, this results in an error when trying to create such a relation. However, the new materialized option introduced in the latest version of Contember allows you to define hasMany relations on views. Materialized views are stored as actual tables, so they can support indexes, but you'll need to refresh them manually. For more details, please refer to PR #748.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@NotSugat
Comment options

Answer selected by NotSugat
Comment options

You must be logged in to vote
2 replies
@NotSugat
Comment options

@jonasnobile
Comment options

Comment options

You must be logged in to vote
1 reply
@jonasnobile
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants