Pony ORM Entity Unidirectional Mapping gives an error
问题 I have 2 tables. TableA & TableB TableA +------+----------------+-----------+ | id | some_attribute | tableB_id | +------+----------------+-----------+ id =primary key some_attribute =varchar TableB_id =foreign key TableB +------+----------------+ | id | some_attribute | +------+----------------+ id =primary key some_attribute =varchar My code: # establish a connection with the database (MySQL) db = Connection.Connection.connect_db_server_default() class TableB(db.Entity): _table_ = "table_b"