SqlAlchemy:检查一个对象是否存在任何关系或_object.relationship1.containsotherObject,object.relationship2.containsotherObject
SqlAlchemy:检查一个对象是否存在任何关系(或_(object.relationship1.contains(otherObject),object.relationship2.contains(otherObject))) - 假设我有一个这样的课程:
class Foo(declarativeBase):
bars1 = relationship(Bar.Bar, secondary=foos_to_bars1, collection_class=set())
...