diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-08-30 17:41:47 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-08-30 17:41:47 -0400 |
commit | 092fbb40eb72d08a9eb433a6ac182723af774201 (patch) | |
tree | 42c4650c6845a907b0bc94399edf60dfcbc0af28 /examples/inheritance/polymorph.py | |
parent | 53f93a3ba71af21be5f77fcd2ee4c0d051fbdf5d (diff) | |
download | sqlalchemy-092fbb40eb72d08a9eb433a6ac182723af774201.tar.gz |
- The include_properties and exclude_properties arguments
to mapper() now accept Column objects as members in
addition to strings. This so that same-named Column
objects, such as those within a join(), can be
disambiguated.
- A warning is now emitted if a mapper is created against a
join or other single selectable that includes multiple
columns with the same name in its .c. collection,
and those columns aren't explictly named as part of
the same or separate attributes (or excluded).
In 0.7 this warning will be an exception. Note that
this warning is not emitted when the combination occurs
as a result of inheritance, so that attributes
still allow being overridden naturally.
[ticket:1896]. In 0.7 this will be improved further.
- The primary_key argument to mapper() can now specify
a series of columns that are only a subset of
the calculated "primary key" columns of the mapped
selectable, without an error being raised. This
helps for situations where a selectable's effective
primary key is simpler than the number of columns
in the selectable that are actually marked as
"primary_key", such as a join against two
tables on their primary key columns [ticket:1896].
Diffstat (limited to 'examples/inheritance/polymorph.py')
0 files changed, 0 insertions, 0 deletions