Skip to content

Foreign key index support #553

Description

@pblachut

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions