Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个由Zend_Form. 如何通过Zend_Db_Table关系类型为多对多的表格将数据包含在数据库中?
Zend_Form
Zend_Db_Table
请参阅代码: http: //pastebin.com/u3C6TQKi和图像示例:
首先,您应该插入父表。您可以获得插入行ID。所以插入带有父行ID的子数据。这是最好的方法。您也可以编写单个查询并运行它一次。