On 08/24/2016 08:59 AM, Gordan Todorovac wrote:
Hi, all -
I am experiencing the issue described here
http://stackoverflow.com/questions/14470688/sqlalchemy-bidirectional-relationship-association-proxy
and reported as fixed here
https://bitbucket.org/zzzeek/sqlalchemy/issues/2655
in the latest release version of SQLAlchemy (1.0.14). Summary: removing
a child object from the proxied (on parent) many-to-many relationship
using an association object does not remove the association object or
the reference to it from the child.
The issue mentioned in 2655 is a major behavior of the ORM, in that an
object is considered orphan if any of its relationships are non-present
in all cases, including pending and persistent, rather than if all of
them are un-present. This is not at all subtle and is covered in a
wide range of test cases. The test case attached to the bug continues
to pass, as does the demonstration attached in the migration notes:
http://docs.sqlalchemy.org/en/latest/changelog/migration_08.html#the-consideration-of-a-pending-object-as-an-orphan-has-been-made-more-aggressive.
Is anyone aware whether this bug was reintroduced on purpose (i.e.
figured out the rationale for the original behavior) or by accident?
reintroduction of a bug here would need to be demonstrated.
Many thanks,
Gordan
--
You received this message because you are subscribed to the Google
Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.