here's the migration note that includes this information:
https://docs.sqlalchemy.org/en/13/changelog/migration_12.html#hybrid-attributes-support-reuse-among-subclasses-redefinition-of-getter
On Thu, Dec 19, 2019, at 7:18 PM, Mike Bayer wrote:
> hiya -
>
> going to say right off this is the
hiya -
going to say right off this is the naming issue, there's an unfortunately
stalled PR to make sure the documentation emphasizes this at
https://github.com/sqlalchemy/sqlalchemy/pull/4970 . basically the same note as
you see in
We have a "Users" model with this, which was a hybrid property to wrap the
"email" column temporarily. The database column (MySQL 5.7) is "email",
but defined by ORM as "_email", with an "email" hybrid property to access
and set:
_email = Column(u'email', String(255))
...
@hybrid_property