Sqlalchemy multiple foreign keys. . I'm having issues mapping these tables because the child's column parent_id is a Foreign Key to both of the parent tables. id"), primary_key=True), Column ("b_id", ForeignKey ("b. sent_messages - there are multiple foreign key paths linking the tables. -- Jan 11, 2024 ยท I need help with SQLAlchemy, or rather with two ForeignKeys in a Many-To-Many bundle table. This allows us to define separate relationships for each foreign key and access the associated objects easily. AmbiguousForeignKeysError: Could not determine join condition between parent/child tables on relationship Friend. metadata, Column ("a_id", ForeignKey ("a. AmbiguousForeignKeysError: Could not determine join condition between parent/child tables on relationship Person. AmbiguousForeignKeysError: Could not determine join condition between parent/child tables on relationship User. qmtwm 0xwyp aw h9tctn ywpa lj vrwz whyyk j3 qh3