- changed status to resolved
xload_all(Parent.c1, Parent.c2) should raise an error
Issue #2370
resolved
from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
Base= declarative_base()
class A(Base):
__tablename__ = "a"
id = Column(Integer, primary_key=True)
bs = relationship("B")
cs = relationship("C")
class B(Base):
__tablename__ = "b"
id = Column(Integer, primary_key=True)
aid = Column(Integer, ForeignKey('a.id'))
class C(Base):
__tablename__ = "c"
id = Column(Integer, primary_key=True)
aid = Column(Integer, ForeignKey('a.id'))
s = Session()
q = s.query(A).options(joinedload_all(A.bs, A.cs))
print q
if in 0.7, emit a warning for now.
Comments (2)
-
reporter -
reporter - removed milestone
Removing milestone: 0.7.5 (automated comment)
- Log in to comment
4480eea62225951263892831190012dcea10c2e0