We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please see here
configure_mappers() step throws AttributeError: '_ProxyImpl' object has no attribute 'dispatch' for synonyms because this code here:
configure_mappers()
sqlalchemy-continuum/sqlalchemy_continuum/builder.py
Lines 194 to 205 in ccd8707
should also exclude synonyms. Additionally please review the SQLAlchemy 2.0 version of versioned history which does not require use of the private ".impl" attribute.
Code to reproduce error:
from datetime import datetime from sqlalchemy import String, DateTime, Integer from sqlalchemy.orm import ( DeclarativeBase, Mapped, mapped_column, configure_mappers, declared_attr, synonym, ) from sqlalchemy_continuum import make_versioned make_versioned(user_cls=None) class Base(DeclarativeBase): pass class TableBase: id: Mapped[int] = mapped_column(Integer, primary_key=True, index=True) create_time: Mapped[datetime] = mapped_column(DateTime(timezone=True)) @declared_attr def createTime(cls): return synonym("create_time") class A(Base, TableBase): __versioned__ = {} __tablename__ = "table_a" property_a: Mapped[str] = mapped_column(String) propA = synonym(property_a) configure_mappers()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Please see here
configure_mappers()
step throws AttributeError: '_ProxyImpl' object has no attribute 'dispatch' for synonyms because this code here:sqlalchemy-continuum/sqlalchemy_continuum/builder.py
Lines 194 to 205 in ccd8707
should also exclude synonyms. Additionally please review the SQLAlchemy 2.0 version of versioned history which does not require use of the private ".impl" attribute.
Code to reproduce error:
The text was updated successfully, but these errors were encountered: