Skip to content

back_populates in tables One-To-Many (SQLAlchemy) #47

@leandroimail

Description

@leandroimail

Is your feature request related to a problem? Please describe.
The packages is beautiful and makes greate work with make a SQL to a model.

I repair unfortunately that Omymodels do not make back_populates in SQLAlchemy ORM when a create a model have a One To Many. Reference (https://docs.sqlalchemy.org/en/14/orm/basic_relationships.html)

Describe the solution you'd like

I do not understand now how to package works (yet), but I belive that it is necessary check that table have a relationship (ForeignKey) and put in refereced table a line like:

children = relationship("Child")

I belive that necessary create a parameter to use or not this option to put back_populates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions