What is the right way to define a table (“secondtable”) with multiple primary key, one of them (“|first_table_key”) is a “many to one” relation to another table (“firsttable”)?
This doesen't work because of multiple definitions of “first_table_key”!
namespace qx
{
template <> void register_class(QxClass<secondtable> & t)
{
t.id(&secondtable::m_id, “second_table _key|first_table_key”);
t.data(&secondtable::m_text, "second_table_text");
t.relationManyToOne(&secondtable::m_firsttable, “first_table_key”);
}
}