Changeset 531 for elixir/trunk/elixir/relationships.py
- Timestamp:
- 09/02/10 12:07:44 (21 months ago)
- Files:
-
- 1 modified
-
elixir/trunk/elixir/relationships.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/elixir/relationships.py
r522 r531 629 629 if isinstance(self.target, EntityMeta): 630 630 # make sure the target has all its pk set up 631 #FIXME: this is not enough when specifying target_column manually, 632 # on unique, non-pk col, see tests/test_m2o.py:test_non_pk_forward 631 633 self.target._descriptor.create_pk_cols() 634 632 635 #XXX: another option, instead of the FakeTable, would be to create an 633 636 # EntityDescriptor for the SA class. … … 650 653 "'%s' using the following columns: %s." 651 654 % (self.entity.table.name, colnames)) 655 else: 656 # in this case we let SA handle everything. 657 # XXX: we might want to try to build join clauses anyway so 658 # that we know whether there is an ambiguity or not, and 659 # suggest using colname if there is one 660 pass 652 661 if self.field: 653 662 raise NotImplementedError( … … 803 812 # (ManyToOne). 804 813 if self.entity.table is self.target.table: 805 # FIXME: IF this code is of any use, it will probably break for806 # a utoloaded tables814 # When using a manual/autoloaded table, it will be assigned 815 # an empty list, which doesn't seem to upset SQLAlchemy 807 816 kwargs['remote_side'] = self.inverse.foreign_key 808 817
