]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Another pass through the series of error messages
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 14 Aug 2010 18:52:18 +0000 (14:52 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 14 Aug 2010 18:52:18 +0000 (14:52 -0400)
commit8fc50cd3a4eb98501c5ae47ead07c20b485934df
tree45f85f8e07deeb8430c0ef60f5534d5eff15b57f
parent252ab17c7dc5f1cfd1a5173fb6d9e4b819e1ebb7
- Another pass through the series of error messages
emitted when relationship() is configured with
ambiguous arguments.   The "foreign_keys"
setting is no longer mentioned, as it is almost
never needed and it is preferable users set up
correct ForeignKey metadata, which is now the
recommendation.  If 'foreign_keys'
is used and is incorrect, the message suggests
the attribute is probably unnecessary.  Docs
for the attribute are beefed up.  This
because all confused relationship() users on the
ML appear to be attempting to use foreign_keys
due to the message, which only confuses them
further since Table metadata is much clearer.

- If the "secondary" table has no ForeignKey metadata
and no foreign_keys is set, even though the
user is passing screwed up information, it is assumed
that primary/secondaryjoin expressions should
consider only and all cols in "secondary" to be
foreign.  It's not possible with "secondary" for
the foreign keys to be elsewhere in any case.
A warning is now emitted instead of an error,
and the mapping succeeds. [ticket:1877]

- fixed incorrect "Alternate Collection Mappings" reference
in the docs, not sure if someone wants to reference
"Rows that Point to Themselves" function
- "Collection Mapping" is "Advanced Collection Mapping", this
section is troublesome since nobody really needs it but it
is public API
CHANGES
doc/build/mappers.rst
doc/build/ormtutorial.rst
doc/build/reference/orm/collections.rst
lib/sqlalchemy/ext/declarative.py
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/test/testing.py
test/orm/test_relationships.py