我有错误,指示'reservation_id‘没有默认值。这个reservation_id of table reservation_participate_details是来自父表订座的id列的外键。我想知道是否与hasMany或belongsTo有关。reservation_participate_details.中的保留表应该/有许多行这个过程以前是工作的,但是当我将reservation_participate_details的一个列(reservation_
但是,我应该能够将它们链接起来,但前提是我知道特定实例的reservation_id。但是..。例如如何获得reservation_id?检查了文档,并只能找到cmd行工具来获取此信息。instance.tags: name = tag['Value'] # nothing called tag['reservation_id