kvesteri / sqlalchemy-continuum

Versioning extension for SQLAlchemy.
BSD 3-Clause "New" or "Revised" License
575 stars 127 forks source link

fix(303): Allow querying viewonly relationships #304

Open AbdealiLoKo opened 2 years ago

AbdealiLoKo commented 2 years ago

The earlier logic did not consider viewonly relationships to build the association tables for the relationships. But it was also not initializing all the necessary variables to be able to query the viewonly relationships.

This commit fixes RelationshipBuilder so that the reflected_relationship works for viewonly relationships and it does not build anything

mateoradman commented 1 year ago

Hi, when is this planned to be released? Also, what would be the potential workaround for viewonly relationship columns in the current version? Thanks