@@ -5788,7 +5788,9 @@ class LibraryFolder(Base, Dictifiable, HasName, Serializable):
5788
5788
order_by = asc (name ),
5789
5789
back_populates = "parent" ,
5790
5790
)
5791
- parent : Mapped [Optional ["LibraryFolder" ]] = relationship (back_populates = "folders" , remote_side = [id ])
5791
+ parent : Mapped [Optional ["LibraryFolder" ]] = relationship (
5792
+ back_populates = "folders" , remote_side = lambda : LibraryFolder .id
5793
+ )
5792
5794
5793
5795
active_folders : Mapped [List ["LibraryFolder" ]] = relationship (
5794
5796
primaryjoin = ("and_(LibraryFolder.parent_id == LibraryFolder.id, not_(LibraryFolder.deleted))" ),
@@ -5928,10 +5930,12 @@ class LibraryDataset(Base, Serializable):
5928
5930
purged : Mapped [Optional [bool ]] = mapped_column (index = True , default = False )
5929
5931
folder : Mapped [Optional ["LibraryFolder" ]] = relationship ()
5930
5932
library_dataset_dataset_association = relationship (
5931
- "LibraryDatasetDatasetAssociation" , foreign_keys = library_dataset_dataset_association_id , post_update = True
5933
+ "LibraryDatasetDatasetAssociation" ,
5934
+ foreign_keys = library_dataset_dataset_association_id ,
5935
+ post_update = True ,
5932
5936
)
5933
5937
expired_datasets : Mapped [List ["LibraryDatasetDatasetAssociation" ]] = relationship (
5934
- foreign_keys = [ id , library_dataset_dataset_association_id ],
5938
+ foreign_keys = lambda : [ LibraryDataset . id , LibraryDataset . library_dataset_dataset_association_id ],
5935
5939
primaryjoin = (
5936
5940
"and_(LibraryDataset.id == LibraryDatasetDatasetAssociation.library_dataset_id, \
5937
5941
not_(LibraryDataset.library_dataset_dataset_association_id == LibraryDatasetDatasetAssociation.id))"
@@ -6937,8 +6941,9 @@ class HistoryDatasetCollectionAssociation(
6937
6941
6938
6942
copied_from_history_dataset_collection_association = relationship (
6939
6943
"HistoryDatasetCollectionAssociation" ,
6940
- primaryjoin = copied_from_history_dataset_collection_association_id == id ,
6941
- remote_side = [id ],
6944
+ primaryjoin = lambda : HistoryDatasetCollectionAssociation .copied_from_history_dataset_collection_association_id
6945
+ == HistoryDatasetCollectionAssociation .id ,
6946
+ remote_side = lambda : HistoryDatasetCollectionAssociation .id ,
6942
6947
uselist = False ,
6943
6948
)
6944
6949
implicit_input_collections : Mapped [List ["ImplicitlyCreatedDatasetCollectionInput" ]] = relationship (
@@ -8483,7 +8488,7 @@ class WorkflowComment(Base, RepresentById):
8483
8488
parent_comment : Mapped [Optional ["WorkflowComment" ]] = relationship (
8484
8489
primaryjoin = (lambda : WorkflowComment .id == WorkflowComment .parent_comment_id ),
8485
8490
back_populates = "child_comments" ,
8486
- remote_side = [ id ] ,
8491
+ remote_side = lambda : WorkflowComment . id ,
8487
8492
)
8488
8493
8489
8494
child_comments : Mapped [List ["WorkflowComment" ]] = relationship (
@@ -10593,7 +10598,7 @@ class Tag(Base, RepresentById):
10593
10598
parent_id : Mapped [Optional [int ]] = mapped_column (ForeignKey ("tag.id" ))
10594
10599
name : Mapped [Optional [str ]] = mapped_column (TrimmedString (255 ))
10595
10600
children : Mapped [List ["Tag" ]] = relationship (back_populates = "parent" )
10596
- parent : Mapped [Optional ["Tag" ]] = relationship (back_populates = "children" , remote_side = [ id ] )
10601
+ parent : Mapped [Optional ["Tag" ]] = relationship (back_populates = "children" , remote_side = lambda : Tag . id )
10597
10602
10598
10603
def __str__ (self ):
10599
10604
return f"Tag(id={ self .id } , type={ self .type or - 1 } , parent_id={ self .parent_id } , name={ self .name } )"
@@ -10860,7 +10865,7 @@ class Vault(Base):
10860
10865
key : Mapped [str ] = mapped_column (Text , primary_key = True )
10861
10866
parent_key : Mapped [Optional [str ]] = mapped_column (Text , ForeignKey (key ), index = True )
10862
10867
children : Mapped [List ["Vault" ]] = relationship (back_populates = "parent" )
10863
- parent : Mapped [Optional ["Vault" ]] = relationship (back_populates = "children" , remote_side = [ key ] )
10868
+ parent : Mapped [Optional ["Vault" ]] = relationship (back_populates = "children" , remote_side = lambda : Vault . key )
10864
10869
value : Mapped [Optional [str ]] = mapped_column (Text )
10865
10870
create_time : Mapped [datetime ] = mapped_column (default = now , nullable = True )
10866
10871
update_time : Mapped [datetime ] = mapped_column (default = now , onupdate = now , nullable = True )
@@ -11519,7 +11524,7 @@ def __repr__(self):
11519
11524
HistoryDatasetAssociation .table .c .copied_from_history_dataset_association_id
11520
11525
== HistoryDatasetAssociation .table .c .id
11521
11526
),
11522
- remote_side = [ HistoryDatasetAssociation .table .c .id ] ,
11527
+ remote_side = lambda : HistoryDatasetAssociation .table .c .id ,
11523
11528
uselist = False ,
11524
11529
back_populates = "copied_to_history_dataset_associations" ,
11525
11530
),
@@ -11610,7 +11615,7 @@ def __repr__(self):
11610
11615
LibraryDatasetDatasetAssociation .table .c .copied_from_library_dataset_dataset_association_id
11611
11616
== LibraryDatasetDatasetAssociation .table .c .id
11612
11617
),
11613
- remote_side = [ LibraryDatasetDatasetAssociation .table .c .id ] ,
11618
+ remote_side = lambda : LibraryDatasetDatasetAssociation .table .c .id ,
11614
11619
uselist = False ,
11615
11620
back_populates = "copied_to_library_dataset_dataset_associations" ,
11616
11621
),
0 commit comments