- added slightly more preemptive message for bad remote_side
at the class level, e.g. MyClass.aproxy. Previously this
evaluated to None.
-
+- declarative
+ - The full list of arguments accepted as string by backref()
+ includes 'primaryjoin', 'secondaryjoin', 'secondary',
+ 'foreign_keys', 'remote_side', 'order_by'.
+
0.5.0rc4
========
- features
]
else:
self.local_remote_pairs = criterion_as_pairs(self.primaryjoin, consider_as_foreign_keys=self.remote_side, any_operator=True)
+
+ if not self.local_remote_pairs:
+ raise sa_exc.ArgumentError("Relation %s could not determine any local/remote column pairs from remote side argument %r" % (self, self.remote_side))
+
else:
if self.viewonly:
eq_pairs = self.synchronize_pairs