The collection.link decorator doesn't work
Issue #2653
resolved
I'm opening this bug report after the following mailing list discussion:
https://groups.google.com/d/msg/sqlalchemy/-/SuJLukrnfg4J
The issue is that the @collection.link decorator and the _instrument_class decorator use the "link" role name and thus set the linker method to the "_sa_link" attribute of the collection class. But the CollectionAdapter uses the "_sa_on_link" attribute to notify the collection of link and unlink events.
The following pull request proposes a fix:
https://bitbucket.org/sqlalchemy/sqlalchemy/pull-request/36/fix-the-collectionlink-decorator
Comments (2)
-
repo owner -
repo owner - removed milestone
Removing milestone: 0.8.0final (automated comment)
- Log in to comment
2e627a62ea3234b07c59d818bca6e37fdcea29ee
b1df6fab53a0d740fe60f04e5c9ad01027ba59af