I`ve just tried to use foreign key support as it was described here.
I`ve noticed two issues:
- ForeignKey attribute on document definition does not create index in postgres, where fluent definition does as it should.
Used attribute definition
Used fluent definition
- I`ve noticed some unexpected behavior for me during inserting new document with invalid foreign key. It just allowed me to do that without any error and additional column contained invalid id. Should I add some additional configuration to force checking this constraint?
My example of usage can be found here.
I`ve just tried to use foreign key support as it was described here.
I`ve noticed two issues:
Used attribute definition
Used fluent definition
My example of usage can be found here.