Dnia 2009-08-24, Pn o godzinie 12:35 -0700, Kees van den Broek pisze:
> Hi,
>
> This is a table setup in declarative style:
>
> class Category(DeclarativeBase):
> __tablename__ = 'category'
> category_id = Column(Integer, autoincrement=True,
> primary_key=True)
> name = Column(Unicode(255), unique=True, nullable=False)
> children = relation('Category', backref=backref('parent',
> remote_side=[category_id]))
>
Are you sure your example doesn't work? it works for me (0.5.5).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---