Skip to content

[Docs] Document on the Associations page that you can pass an object to foreignKey #9405

Closed

Description

@davidbarratt

I had to go through and read the source code to find this out, but you can pass an object to foreignKey rather than a string. This is helpful if you want to pass additional options. This should probably be added to the documentation somewhere (perhaps just in one of the examples?)

Activity

  1. added
    docs
    on May 7, 2018
  2. stale commented on Jul 24, 2019

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂

  3. added
    status: wip
    on Oct 10, 2019
  4. self-assigned this
    on Oct 10, 2019
  5. removed
    status: wip
    on Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions