Skip to content

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

Closed

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.

Activity

  1. xnuinside commented on Feb 12, 2023

    @xnuinside
    Owner

    @leandroimail, hi! thanks for opening the issues, I had a problems with free time last month. I will try to work on it next week

  2. xnuinside commented on Jan 18, 2026

    @xnuinside
    Owner

    Added in version 1.0.0! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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