Skip to content

Mongodb entities referencing each other by ids only #5471

Answered by B4nan
vladkrasn asked this question in Q&A
Discussion options

You must be logged in to vote

No, the ORM does not do such checks, with SQL drivers this is a native feature of the db engines (called referential integrity - and you need actual relations for this, not just scalar properties), not of the ORM. If you want this, you need to implement it yourself in your app code.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vladkrasn
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