- changed status to resolved
expire(obj) fails when synonym is present
Issue #964
resolved
from sqlalchemy import *
from sqlalchemy.orm import *
metadata = MetaData('sqlite:///')
t = Table('nodes', metadata,
Column('id', Integer, primary_key=True),
Column('name', String(60)))
metadata.create_all()
t.insert().execute(id=1, name='foo')
class Node(object): pass
mapper(Node, t, properties=dict(nom=synonym('name')))
s = create_session()
n = s.query(Node).get(1)
print n.nom
s.expire(n)
AttributeError: 'ProxyImpl' object has no attribute 'accepts_scalar_loader'
Comments (1)
-
repo owner - Log in to comment
2b6e2defe593b4df2810df91193a8729ccea8e1c