SQLAlchemy 2.0 is firing an attribute set event on session.commit()
#9229
-
|
I have a validator for some attributes that is configured using In SQLAlchemy 2.0, if There does not appear to be any way to determine that the event handler was called during instance expiry as Is this a regression in SQLAlchemy 2.0, or an intended change? How do I identify that the attribute is being expired? (I can't use the class-level |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
hi - There's no known regression in this area, and there is no such change intended.
the most expedient way is to look inside of there's no detail or example mappings / operations provided here so I know much less about what you are seeing than you do. |
Beta Was this translation helpful? Give feedback.
hi -
There's no known regression in this area, and there is no such change intended.
the most expedient way is to look inside of
object.__dict__and see if the key is missing.there's no detail or example mappings / operations provided here so I know much less about what you are seeing than you do.