Hi,
I have an ORM class:
class Wineracku(DeclarativeBase, mix.StandardColumnMixin):
__tablename__ = u'wineracku'
description = sa.Column(sa.Unicode(length=30))
shortdesc = sa.Column(sa.Unicode(length=10))
# only used with single bottle type units
maxcol = sa.Column(sa.Integer(), default=0)
maxrow = sa.Column(sa.Integer(), default=0)
fk_winerack_id = sautils.reference_col('winerack')
fk_combrack_id = sautils.reference_col('wineracku')
And I would like a relationship which relates to same table based on
fk_combrack_id.
I tried this but combrack is always an empty list:
Wineracku.combrack = sao.relationship('Wineracku')
I tried this but combrack is always an empty list:
Wineracku.combrack = sao.relationship('Wineracku')
and this with the same result:
Wineracku.combrack = sao.relationship('Wineracku',
primaryjoin=('Wineracku.fk_combrack_id==Wineracku.id'))
What am I doing wrong?
Werner
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.