diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-12-03 21:27:04 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-12-03 21:27:04 +0000 |
commit | fff9409a339d7a8d33667f5f717a3ae7ed334842 (patch) | |
tree | 3c00330b4636376eeae1b170da62f9e7fd156629 /lib/sqlalchemy/databases/access.py | |
parent | 0410eae36b36dc8ea7e747c4b81c7ec9de5f2da4 (diff) | |
download | sqlalchemy-fff9409a339d7a8d33667f5f717a3ae7ed334842.tar.gz |
- Query.with_polymorphic() now accepts a third
argument "discriminator" which will replace
the value of mapper.polymorphic_on for that
query. Mappers themselves no longer require
polymorphic_on to be set, even if the mapper
has a polymorphic_identity. When not set,
the mapper will load non-polymorphically
by default. Together, these two features allow
a non-polymorphic concrete inheritance setup
to use polymorphic loading on a per-query basis,
since concrete setups are prone to many
issues when used polymorphically in all cases.
Diffstat (limited to 'lib/sqlalchemy/databases/access.py')
0 files changed, 0 insertions, 0 deletions