Skip to content

Commit

Permalink
🚚 Also fix backpopulate
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Dec 9, 2022
1 parent 3dbc767 commit 4a25bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lnschema_core/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class DObject(SQLModel, table=True): # type: ignore
# We need the fully module-qualified path below, as there might be more
# schema modules with an ORM called "Run"
source: "lnschema_core._core.Run" = Relationship( # type: ignore # noqa
back_populates="output"
back_populates="outputs"
)
"""Link to :class:`~lnschema_core.Run` that generated the `dobject`."""
run_id: str = Field(foreign_key="core.run.id", index=True)
Expand All @@ -167,7 +167,7 @@ class DObject(SQLModel, table=True): # type: ignore
)
"""Link to feature sets."""
targets: List["lnschema_core._core.Run"] = Relationship( # type: ignore # noqa
back_populates="input",
back_populates="inputs",
sa_relationship_kwargs=dict(secondary=RunIn.__table__),
)
"Runs that use this dobject as input."
Expand Down

0 comments on commit 4a25bf4

Please sign in to comment.