Skip to content

[Question] Creating M2M relationship to same table #6317

Discussion options

You must be logged in to vote

Hi,

You can pass table name to the secondary, so secondary='parent_to_child'. Note that usually the secondary table is a plain table, defined with Table that's not mapped to a class (but will work even with your configuration)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@FalseDev
Comment options

@CaselIT
Comment options

@FalseDev
Comment options

@CaselIT
Comment options

Answer selected by FalseDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6316 on April 18, 2021 18:32.