From f55ae66f70d6b28fbccd75ac9089f11e951c4c39 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 19 Aug 2022 12:30:35 -0400 Subject: [PATCH] add missing abstract concrete base changelog Was missing from commit d0abdbe247dc82db51aa0af3d31b0510 Fixes: #8403 Change-Id: Ic4d9116236072ce495b5bef2671515a24d04eca2 --- doc/build/changelog/unreleased_20/8403.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 doc/build/changelog/unreleased_20/8403.rst diff --git a/doc/build/changelog/unreleased_20/8403.rst b/doc/build/changelog/unreleased_20/8403.rst new file mode 100644 index 0000000000..f7d2b6550a --- /dev/null +++ b/doc/build/changelog/unreleased_20/8403.rst @@ -0,0 +1,16 @@ +.. change:: + :tags: bug, orm + :tickets: 8403 + + Added new parameter :paramref:`.AbstractConcreteBase.strict_attrs` to the + :class:`.AbstractConcreteBase` declarative mixin class. The effect of this + parameter is that the scope of attributes on subclasses is correctly + limited to the subclass in which each attribute is declared, rather than + the previous behavior where all attributes of the entire hierarchy are + applied to the base "abstract" class. This produces a cleaner, more correct + mapping where subclasses no longer have non-useful attributes on them which + are only relevant to sibling classes. The default for this parameter is + False, which leaves the previous behavior unchanged; this is to support + existing code that makes explicit use of these attributes in queries. + To migrate to the newer approach, apply explicit attributes to the abstract + base class as needed. \ No newline at end of file -- 2.47.2