I have simplest model:
db.define_table('company',
Field('name'),
Field('created_by', 'reference person'))
db.define_table('person',
Field('last_name'),
Field('company_id', 'reference company'))
but I receive error:
File "C:\Python27\Lib\site-packages\web2py\gluon\sql.py", line 1643,
in _create_references
raise SyntaxError, 'Table: table "%s" does not exist' % referenced
So it looks not like a bug, but as behaviour by design (raise
SyntaxError).
What I do wrong?
I simple need a standard possibilities of relations/joins, because I
want design database application, not static html pages :-((
Thanks for help. Mirek