Hi all,

How do I create two tables that both refer to each other? Here's a
simple example:

db.define_table(
    'item',
    Field('current_alias', 'db.item_alias')
    )

db.define_table(
    'item_alias',
    Field('name'),
    Field('item', 'db.item')
    )

This throws
  "SyntaxError: Field: unknown field type: db.item_alias for
current_alias"
because they both need the other to be created first!

How can I create a simple relationship like this? Thanks in advance!

Reply via email to